Skip to main content
Deaf_Guy
Inspiring
October 28, 2008
Question

on release 2.0

  • October 28, 2008
  • 1 reply
  • 277 views
hi - i can't find this command in behaviors. i have a button that on release i need to send the movie to go to and play scene 1. can someone tell me what the 2.0 AS script is for this command?

thanks.
This topic has been closed for replies.

1 reply

Inspiring
October 28, 2008
It's best to assign an instance name to your button - then in the Frame
script you do:

myButton.onRelease = function(){
someClip.gotoAndPlay(20);
}

PS - you'll find this in Help under the method listing for the Button or
MovieClip class.

--
Dave -
www.offroadfire.com
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/


Deaf_Guy
Deaf_GuyAuthor
Inspiring
October 28, 2008
ok here is what i did:

put the button on a layer frame and called the instance of it "replay"

clicked on this same frame to select it and hit F9 to bring up the actions

placed the following code:

replay.onRelease = function(){
someClip.gotoAndPlay(20);
}

i'm assuming the "20" means it will go to scene #2 but an not sure.

tested and it did not work.

please advise.