Flash tutorials
Home 3D (2) Actionscripting (66) Animation (108) Audio (4) Drawing (7) Full flash sites (4) Getting Started (15) Navigation (25) Special Effects (61) Text Effects (38)

Cubic menu

9.3.2007, 20:34    Total views: 72416

In this tutorial you will see how to create cubic flash menu using the Action Script. You will also learn:

1. How to design menu,
2. How to animate it,
3. How to apply action script on it, to make it more powerful and more.



Step 1

Create a new flash documen. New symbol (Ctrl + F8). Graphic – “Cube”





Step 2


New symbol (Ctrl + F8) Button – “Invisible Button”.

Leave the “Up”, “Over” and “Down” frames blank and put a copy of the graphics “Cube”

Step 3

Create 3 layers, (Descending) “Actions”, “Invisible Buttons”, “Movie Clips”.



Step 4

Duplicate button and arrange in triangle.



Step 5

Same arrangement for movie clips in the frame below buttons.

Step 6

New symbol (Ctrl + F8). Graphic – “Home Txt”.

Step 7

Create a new text field, set the typeface to “Forte”, the font to 32 and the colour to #0299FD. Then, in the text field type the word “Home”.

Step 8

Repeat an additional 5 times for each other button.

Step 9

New symbol (Ctrl + F8). Movie Clip – “Home”



Step 10

Place an instance of the graphic “Cube” in frame 1.

Step 11

Select frame 6 in the timeline and create a Keyframe (F6), do the same for frame 11.Reselect frame 6 and then select the copy of “Cube”.

Step 12

Hold down Shift key and tap the down arrow on your keyboard to ‘drop’ the graphic down roughly 10 px.

Step 13

Create a motion tween between frames 1 and 6, and frames 6 and 11.

Step 14

Rename the current layer “Cube”.

For the first tween adjust the ease to –30, and the second to 70. See the picture below.



Step 15

Create a new layer “Text” and copy an instance of “Home Txt” into the first frame.



Step 16

Set its Alpha to 0 %.



Step 17

On frame 11 create a new Keyframe (F6) and copy another instance only with the Alpha set to 100 %.



Step 18

Create a motion tween between frames 1 and 11 on the layer “Text”.

Step 19

Select the last frame on the layer “Cube” and open the ActionScript menu (F9). Then,
enter the following Action Script code:

stop();

Step 20

Give the movie clip the instance name “Home”. Repeat an additional 5 times for each other button.

Step 21

Take the Selection Tool (V) and Select the invisible button which corresponds to the homepage and  enter this ActionScript code inside the Actions Panel (shortcut key: F9):


on (rollOver) {
 _root.mouse_over_Home = true;
}
on (rollOut) {
 _root.mouse_over_Home = fstartlse;
}
on (release) {
 getURL("http://www.flashvault.net/", "blank");
}


Step 22

Repeat an additional 5 times for each button, changing the word “Home” to whatever the instance name is of the corresponding movie clip.

Step 23

Take again the Selection Tool (V), Select the first frame on the “Actions” layer and attach the following ActionScript code inside the Actions Panel:

_root.Home.onEnterFrame = function() {
 if (mouse_over_Home) {
  _root.Home.nextFrame();
 } else {
  _root.Home.prevFrame();
 }
};

_root.Forum.onEnterFrame = function() {
 if (mouse_over_Forum) {
  _root.Forum.nextFrame();
 } else {
  _root.Forum.prevFrame();
 }
};

_root.Blog.onEnterFrame = function() {
 if (mouse_over_Blog) {
  _root.Blog.nextFrame();
 } else {
  _root.Blog.prevFrame();
 }
};

_root.Download.onEnterFrame = function() {
 if (mouse_over_Download) {
  _root.Download.nextFrame();
 } else {
  _root.Download.prevFrame();
 }
};

_root.Link.onEnterFrame = function() {
 if (mouse_over_Link) {
  _root.Link.nextFrame();
 } else {
  _root.Link.prevFrame();
 }
};

_root.Contact.onEnterFrame = function() {
 if (mouse_over_Contact) {
  _root.Contact.nextFrame();
 } else {
  _root.Contact.prevFrame();
 }
};

Test your Movie (Ctrl+Enter).

We're done!

Download source file (.fla)

Have questions about this tutorial?
Visit our friendly Community Forums!
Digg it! Add this tutorial to del.icio.us! Furl it! Add this tutorial to reddit! Spurl it! Add this tutorial to technorati!

Top tutorials

1. Advanced full flash site - Part 1
Total views: 310910

2. High-tech city animation
Total views: 274119

3. Water effect
Total views: 237426

4. Photo slide show
Total views: 221072

5. Special Picture Effect
Total views: 190868



Related links

dans le cadre de leur collection automne / hiver 2008 de la ngc, marque japonaise a ainsi une fois de plus a porter.ADIDAS TUBULAR WOMENils ont travaillé sur l'ensemble des trois pieces et # 8211; un sac fourre - tout, une valise et un porte - clés / carte de voyage.ils présentent une gamme de produits classiques.le fait qu'elles offrent a la plupart d'entre eux en orange est un bon contraste.  via honeyee.ADIDAS ORIGINALS NMDon peut s'attendre a une libération de ce produit dans les semaines a venir.ADIDAS TUBULAR SCHUHEla broderie artiste kimberly scola est parmi ceux qui participent a ce los angeles & # 8216; & # 8220; cette fete et # 8221; exposition,ADIDAS YEEZY BOOST 550 inaugurée vendredi dernier.ADIDAS EQUIPMENT 10a l'occasion de l'ouverture, en cas de scola a collaboré avec une tapisserie de 100 faux sacs fourre - tout.Adidas Adizero F50 FGces agréables rappels d'un événement,ADIDAS X PLR malheureusement, seulement deux jours de liaison.ADIDAS MESSI 16.3 ICles points saillants de & # 8220;StartAdidas Ultra Boost Uncaged cette fete et # 8221; et une liste de cas suivent l'artiste.ADIDAS ACE 16.3 TF