Stick Page Forums Archive

HOW TO MAKE A SUPER SIMPLE FLASH CS6 AS2 BUTTON![Flash][Buttons]

Started by: Splodervit | Replies: 2 | Views: 2,124

Splodervit
Banned

Posts: 20
Joined: Jan 2015
Rep: 10

View Profile
Feb 17, 2015 3:19 PM #1310417
I'll show you how to make a very simple play button in actionscript 2!!!

1 - Make your button! (make something, select it, press F8 (convert to symbol), select "button", the registration doesn't really matters, click it 2 times, and customize it:
Image
UP - normal
OVER - when the mouse its over it
DOWN - when you click it
The HIT doesn't matter.).

2 - select the first frame and press F9 (actions)
Image

3 - put this code in it:
Image


stop();


4 - then create your animation (doesn't really matters being in the same layer or in another one, and it can begin in the layer 1)
Image

5 - then select the button in the first layer, press F9, and put this code:
Image

Image


on (release) {
gotoAndPlay(2);
}


6 - and your button is done!!!

PS: the number in the second code means which frame the animation will jump to when you press the button, so, if you put the number in 45, the animation will roll on to in the layer 45.

(Sorry for the bad english, I'm Brazillian :p)
Zed
2

Posts: 11,572
Joined: Feb 2009
Rep: 10

View Profile
Feb 18, 2015 9:30 AM #1310885
Quote from Splodervit

PS: the number in the second code means in what layer the animation will begin, so, if you put the number in 45, the animation will begin in the layer 45.

(Sorry for the bad english, I'm Brazillian :p)


The number in the code means which frame the animation will jump to when you press the button. Layers all appear at the same time - they're the things which appear vertically in the timeline as opposed to keyframes which appear horizontally.
Splodervit
Banned

Posts: 20
Joined: Jan 2015
Rep: 10

View Profile
Feb 18, 2015 2:46 PM #1311009
Quote from Zed
The number in the code means which frame the animation will jump to when you press the button. Layers all appear at the same time - they're the things which appear vertically in the timeline as opposed to keyframes which appear horizontally.


Oh, sorry :(
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.