| | hey. ive been expermenting with flash again lately. and i was wondering if anyone knew the simple actionscript for a play button. i have a stop action on the frame, and i know how to make buttons, so this is my next step in flash. thanks, SPH |
|
|
you just go to actions and choose GoTo then choose the frame you want to send it to
A better way is to go to the actions choose the Global Functions > Timeline Control > and choose gotoAndPlay
The code will look like this: gotoAndPlay(replace this with the frame number);
Put an actionscript on the button.
1. Select the button. 2. Press F9 to open the actionscript panel. 3. Type in: on(release){ gotoAndPlay(framelabel or number); } Okay, there you go. If you have anymore questions feel free to PM me or ask people who really know how to do actionscripts. There is another alternative way. 1. Name the button. 2. On the current frame type in: ButtonName.onRelease=function(){ gotoAndPlay(framelabel or number); } Hope this helped you.
**ERROR**
Play Buttons )this is to rhodesian.Dragon) Mine keeps saying **ERROR** look: **Error** Scene=Scene 1, layer=Background, frame=1:Line 1: Statement must appear within on handler gotoAndPlay(2); Total ActionScript Errors: 1 Reported Errors: 1 -some1
Recent Queries:-
Keywords : play, buttons, actionscripting, play, button
Looking for play, buttons, actionscripting, play, button
|
|
![]() Play Buttons - ActionScripting for a play button. |
| ADD REPLY / Got an Opinion! | a humble request :-) | RAPID SEARCH! | Free Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute your information that might help someone here. Ask your Doubts & Queries to get answers.. "Together, We enlight each other!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|