Play Buttons - ActionScripting for a play button.

free web hosting
Free Web Hosting > Computers & Tech > Designing

Play Buttons - ActionScripting for a play button.

busdriver630
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

Reply

johnny
you just go to actions and choose GoTo then choose the frame you want to send it to

Reply

rhodesian.dragon
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);

Reply

kuyakurt
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.

Reply

iGuest
**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

Reply


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. actionscript for replay current frame - 12.13 hr back. (1)
  2. actionscript play button - 23.47 hr back. (1)
  3. play button flash as2 - 25.44 hr back. (1)
  4. flash actionscript play button - 27.60 hr back. (1)
  5. go to and play for buttons - 28.43 hr back. (1)
  6. working play button on flash actionscript 2.0 - 30.62 hr back. (1)
  7. play buttons in php - 32.36 hr back. (1)
  8. play button - 5.96 hr back. (7)
  9. free play button - 34.32 hr back. (1)
  10. flash actionscript: play button - 36.89 hr back. (1)
  11. actionscript for play button - 49.79 hr back. (1)
  12. play buttons - 53.33 hr back. (2)
  13. flash play button actionscript - 66.79 hr back. (1)
  14. play button in actionscript - 73.26 hr back. (1)
Similar Topics

Keywords : play, buttons, actionscripting, play, button

  1. Help On Swishmax - Linking Buttons...
    ...to different scenes in a movie! (6)


      Looking for play, buttons, actionscripting, play, button

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for play, buttons, actionscripting, play, button
advertisement




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