Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables for a scene

Status
Not open for further replies.

relisys

Programmer
Mar 6, 2003
65
GB
Hey guys,

I have 6 buttons which when clicked all lead to a "fade out images and text" part of the timeline. At the end of this fade out, there's a gotoAndPlay() line.

Is it possible then when a button is clicked it creates a variable (say here called jumpto) which contains "Scene 1" or "Scene 2" ... "Scene 6" depending on the button, which then links into the gotoAndPlay so I could have something like:

gotoAndPlay(jumpTo, 1);

I can't seem to get it working.

Cheers!


Relisys
 
if you name the frames...give them labels


then

on(release)(
frame = "thisFrame";
}

end of section with fade etc

gotoAndPlay(frame);

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top