Button Tutorial?

Started by: Nanite | Replies: 2 | Views: 602

Nanite
2

Posts: 2,974
Joined: Feb 2012
Rep: 10

View Profile
Oct 6, 2012 8:35 AM #752670
Does anyone know how to create a button or at least a link to a button tutorial?
A simple play button is all I need. By play, I mean stopping the first frame and only click the button would start the animation.

Thanks.
Zero
2

Posts: 4,727
Joined: Aug 2009
Rep: 10

View Profile
Oct 6, 2012 8:55 AM #752677
1.) Write text Play(Or whichever text you want)
2.) Click>F8>Button
-Make sure the point is at the center(The 9 squares)
3.) Click your button, press F9
4.) Write the following code:
on(release){
play();
}
5.) Make a new layer>Click Frame>Type in stop();
Nanite
2

Posts: 2,974
Joined: Feb 2012
Rep: 10

View Profile
Oct 6, 2012 9:09 AM #752684
It worked, thanks, bro!

Quote from Zero

-Make sure the point is at the center(The 9 squares)


Although, I have no idea what this means.