| | 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 |
| Nov 20, 2009 |
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 <%@ Page Language="VB" %>
Similar Topics
Keywords : Buttons Actionscripting Button
|
![]() Play Buttons - ActionScripting for a play button. |
Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com