Tutorial Photoshop Home Tutorial Photoshop Tutorials Photoshop Tutorials Blog Photoshop Tutorials Articles Tutorial Photoshop Resources Tutorial Photoshop Contact menu
 
RSS 2.0
Photoshop & Flash Tutorials, Articles and Resources Only Photoshop
Only Photoshop
Only Photoshop

Web Menu with Animated Buttons in Flash CS4 Part 2

Web Menu ActionScript 2.0

Tutorial by The Mixer from adobeflashtutorial

Then you will see the second part of the tutorial web menu, in this tutorial adobe flash cs4 learn how to do the animation that has the button, you can add as many effects as your imagination allows.

Step 10

The following steps will be the explanation for the animation of the text to change color, this simulates the button has two states Up and Over.

Create a new symbol Ctrl. + F8, name the symbol button gallery.
In the type option to select Movie Clip.

menu-button-10.gif

Step 11

Located in the button gallery symbol, proceed to show the Library panel.
This symbol will have several layers so it is necessary to identify each with a specific name, name this first layer animated text.
Drag the symbol from the library gallery text.

menu-button-11.gif

Step 12

Select the text entered in the previous step and put in coordinates X: 0.0 Y: 0.0.

menu-button-12.gif

Step 13

Insert a keyframe F6 at frame number 24.
PROPERTIES pane, open COLOR EFFECT, and select style Tint option and change the color # 65FF98.

menu-button-13.gif

Step 14

Insert a keyframe F6 in frame 46.
In option COLOR EFFECT, select None style.

menu-button-14.gif

Step 15

Select a point between 1 and 23 in the timeline.
Clicking the right mouse button. On the popup menu select Create Classic Tween.

menu-button-15.gif

Step 16

Now select a point between 25 and 45 on timeline.
Clicking the right mouse button. On the popup menu select Create Classic Tween.

menu-button-16.gif

Step 17

Insert a second layer and rename it to ActionScript button.
Drag the symbol from the library button multiple.

menu-button-17.gif

Step 18

Select the command Insert, and then click the Free Transform tool (Q).
Adjust the size of the rectangle the size of the text as shown in the picture.

menu-button-18.gif

Step 19

Select the rectangle, open the panel ACTIONS - BUTTON and type the following ActionScript 2.0.

on (rollOver) {
            if (_root.link != p) {
                        this.gotoAndPlay("start");
            }
}
on (releaseOutside, rollOut) {
            if (_root.link != p) {
                        this.gotoAndPlay("end");
            }
}
on (release) {
            if (_root.link != p) {
                        _root["button"+_root.link].gotoAndPlay("end");
                        _root.link = p;
            }
}

menu-button-19.gif

Step 20

Insert a third layer and rename it to ActionScript 1.
Insert a keyframe F6 in position 2.
PROPERTIES pane, select the LABEL and write as start tag name.

menu-button-20.gif

Step 21

Select the frame number 25 then insert a keyframe F6.
PROPERTIES pane, select the LABEL and write as end tag name.

menu-button-21.gif

Step 22

Insert a fourth layer and rename it to ActionScript 2.
Select the frame number 1, then open the panel ACTION – FRAME and write the following code


p = 1;
stop();

menu-button-22.gif

Step 23

To conclude with the animation for the gallery button, select the frame number 24 and then insert a keyframe F6.
Select this frame then open the panel ACTION – FRAME, write the following code.

stop();

menu-button-23.gif

Step 24

Will show again, as does the animation for one of the buttons.
First create a symbol Ctrl. + F8, name this symbol button service.
In the type option to select Movie Clip.

menu-button-24.gif

Step 25

Repeat steps 11, 12, 13, 14, 15 and 16, so you get the animation to change the text color.
This is how the timeline stay in the animated text to the command button service.

menu-button-25.gif

Step 26

In the following steps to place the code ActionScript which monitor the effects of a button. To not have much trouble following the steps 17, 18 and 19.
Insert a second layer and rename it to ActionScriptp button.
Drag from the library, the command button multiple, select the Free Transform tool (Q), then adjust the text size symbol as shown in the picture.
Select the Insert then open the panel ACTION – BUTTON and proceed to write the following code.

on (rollOver) {
            if (_root.link != p) {
                        this.gotoAndPlay("start");
            }
}
on (releaseOutside, rollOut) {
            if (_root.link != p) {
                        this.gotoAndPlay("end");
            }
}
on (release) {
            if (_root.link != p) {
                        _root["button"+_root.link].gotoAndPlay("end");
                        _root.link = p;
            }
}

menu-button-26.gif

Step 27

Insert a third layer and name it ActionScript 1.
Place names start and end tags in the frame number 2 and 25.
If you do not have much experience with the handling of tag names you should follow the steps 20 and 21.

menu-button-27.gif

Step 28

Follow the following two steps to complete the animation for the button service.
Insert a fourth layer and rename it to ActionScript 2.
Select frame 1, then open the panel ACTION - FRAME and write the following code.

p = 2;
stop();

menu-button-28.gif

Step 29

Insert a keyframe F6 in frame number 24.
Open the panel ACTION – FRAME and write.

stop ();

So the animation is completed for the second button.
Follow steps 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21 for three buttons, button about us, button contact and button home.
In step 22 changes the ActionScript code for each of the following three buttons (Insert a fourth layer and rename it to ActionScript 2).
Select the frame number 1, then open the panel ACTION – FRAME and write the following code.

For the 3 button to insert the code.
p = 3;
stop();

For the 4 button to insert the code.
p = 4;
stop();

For the 5 button to insert the code.
p = 5;
stop();

The step 23 is the same for all buttons.
Insert a keyframe F6, at No. 24.
Open the panel ACTION – FRAME and write.

stop ();

menu-button-29.gif

Step 30

Once you finish with each of the Animations will have in the Library 5 button symbols, and 5 text symbols.

menu-button-30.gif

Go to part 1

Go to part 3

View swf movie

Register here to comment and rank Tutorials and Articles

 Date: 11/02/2011  HELSTO post:
Love this tutorial!
This finally made sense to me!

 Date: 13/02/2012  NEWJA post:
wedding dresses cheap
best wedding dresses
sweetheart wedding dresses
wedding dresses for sale
wedding dresses cheap online
wedding dresses online
wedding dresses on sale
wedding dresses sale
discount wedding dresses online
wedding dresses discount
cheap prom dresses
prom dresses under 100
prom dresses

 Date: 17/02/2012  ABEET post:
discount prom dresses
yellow prom dresses
purple prom dresses
cheap evening dresses
designer prom dresses
pink prom dresses
prom dresses uk
prom dresses on sale
zoeroad
Venice Film Festival Dresses
Cocktail Dresses 2012
Cocktail Dresses For Juniors
Cocktail Dresses Under 100
Elegant Evening Dresses
Evening Dresses 2011
Evening Dresses 2012
Plus Size Evening Dresses
Sexy Evening Dresses

 
spacer
Creativa Int Network: Arte Creativo - Club de Poesía - Creativa Int - Dominio Uruguay - Ecos Regionales
Entrepreneur Help - Foro Creativo - Futbol Paraguay - Hosting Creativa Int - Más Tutoriales - Adobe Flash Tutorials
Recetas de Cocina - Ruta Interior - Sólo Photoshop - Taller Webmaster - Travel México