![]()
BUTTONS
Buttons are drawings or text that play a certain frame, stop a certain frame, stop, or just play. They can also have other functions, but those functions will not be mentioned in this tutorial. To make a button, draw or write anything. Then, convert to symbol (F8), button. If you double click on the new button, you will go "inside" it. there will be four frames: up, down, over, and hit.
UP: what it looks like regularly.
OVER: what it looks like when you put your mouse over it.
DOWN: what it looks like when you click on it.
HIT: the invisible area of clicking space-if you draw a circle, when the user clicks on the area of the circle, button is clicked on.
If you wish to use these frames, make sure you insert a keyframe at each spot.
ACTIONS: if you want to make your button go to a certain frame, then play, put in the actions:
on (release) {
gotoAndPlay( );
}
In the ( ) type the number of the frame you want to go to.
ACTIONS: if you want to make your button go to a certain frame, then stop, put in the actions:
on (release) {
gotoAndStop( );
}
ACTIONS: if you want your buton to just play something, put in:
on (release) {
play( );
}
Questions?
email me at zakirgowani@gmail.com