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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Going to a frame label on another timeline 2

Status
Not open for further replies.

guyphil

Programmer
Nov 2, 2004
27
IL
Hi

I have a series of buttons nested inside a movie clips on the stage. I have labels for the buttons so that when the user clicks a button, the playhead moves to a certain label on the main timeline. I'd like to know how to say in actionscript something like:

on (release) {
gotoAndStop("_root.framelabel'a'");
}
or something to that effect.


thanks

guyphil
 
Code:
on(release){
   _root.gotoAndStop("a");
}

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
or if the button instance names as the same as the frame labels put this in the main timeline and you can then forget about paths

Button.prototype.onRelease = function(){
gotoAndStop(this._name);
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top