Header Ads Widget

Horizontal Menu with Guide Animation Flash CS4 Part-2

Tutorial Adobe Flash CS4 ActionScript 2.0


This menu has scheduled an animation with ActionScript 2.0, to make this animation you need to create the second symbol of type movie clip. The animation button to note is that each of the buttons that took office on the selected button. The tutorial is made in Flash CS4 and ActionScript 2.0.
Step 8
Now it's time to put the ActionScript code to command button
Panel will select Properties, then write an instance name button_1.
Place the symbol coordinate X: 72.5 Y: 20.0.
Then open the panel ACTION - BUTTON, and type the following ActionScript:
on (rollOver) {
guide.mueveX = button_1._x; }

Note: Following the order of the numbers in the following picture to not have problems in each of the steps.
Step 9 :-
Repeat step 7 to add a second button from the library.
A new button will place the instance name button_2.
Type the following ActionScript code for this symbol.
on (rollOver) {
guide.mueveX = button_2._x; 
}
Step 10
Insert a third button from the library as shown in step 7.
This button will place the instance name button_3.
Type the following ActionScript code.
on (rollOver) {
guide.mueveX = button_3._x;
}
Step 11
Insert a fourth button from the library follow step 7.
Then place the following ActionScript code in the panel ACTIONS - BUTTON.
on (rollOver) {
guide.mueveX = button_4._x;
}

This step is made in a horizontal menu.

Step 12
To conclude the tutorial, follow these 3 steps, insert a second layer
Open the library panel and drag the symbol guide to the scene, the second layer. Then select the movie clip, open the panel ACTIONS - MOVIE CLIP insert the following ActionScript.
onClipEvent (load) {
mueveX = _x;
speed = 5;
}
onClipEvent (enterFrame) {
_x + = (mueveX-_x) / speed;
}
Step 13
Open the properties panel, then insert the instance name guide.
If you followed the steps as you indicated from the outset with the coordinates, place this symbol in coordinates X: -57.5 Y: 20.0.
Step 14
The last step is to add a third layer.
In this layer insert four static text fields in each type the following text HOME TUTORIAL DOWNLOAD and CONTACT.
Each of the words put in given one of the buttons.
With this step is completed the explanation of the tutorial. Well done.
PS pressing Ctrl. + Intro, to see how the movie works (horizontal menu)