Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Play Buttons, ActionScripting for a play button.
busdriver630
post Apr 13 2005, 03:10 AM
Post #1


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 4
Joined: 13-April 05
Member No.: 3,933



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
Go to the top of the page
 
+Quote Post
johnny
post Jun 1 2005, 03:21 AM
Post #2


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 25
Joined: 1-June 05
Member No.: 5,655



you just go to actions and choose GoTo then choose the frame you want to send it to
Go to the top of the page
 
+Quote Post
rhodesian.dragon
post Jun 1 2005, 05:55 PM
Post #3


Advanced Member
Group Icon

Group: Members
Posts: 193
Joined: 4-April 05
Member No.: 3,615



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);
Go to the top of the page
 
+Quote Post
kuyakurt
post Feb 21 2006, 07:32 PM
Post #4


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 34
Joined: 21-February 06
Member No.: 11,447



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.
Go to the top of the page
 
+Quote Post
iGuest
post Dec 21 2007, 11:05 PM
Post #5


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 0
Joined: 1-November 07
Member No.: 25,869



**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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Help On Swishmax - Linking Buttons...(7)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 11:52 PM