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

Property Name

Status
Not open for further replies.

Caden

Programmer
Dec 9, 2001
101
CA
Hey all, funny, I can't recall, nor find the actually name of the frame label for referencing it in actionscript...

eg, I want to say -
if (framename = home){
gotoandplay...etc
}

but I can't find the name of the frame label property

thanks
Caden
 
Confusion!

There's no frame label property, not to my knowledge.

You could maybe store your labels in an array, and then with the _currentframe number find the corresponding label... Hard work if you ask me! Especially if you have 2000 frames.



Regards,

cubalibre2.gif
 
I know ;) there has to be a way to reference your frame label, what the hell is the point of giving it a name then? just to make your stage work easier? I can't believe that ;)
 
The use of frame labels is usually to direct your movie to that frame...

if(condition == true){
_root.gotoAndPlay("frame_label");
} else {
_root.gotoAndPlay("other_frame_label");
}




Regards,

cubalibre2.gif
 
I am trying to use it in a slightly different way...so, you have a group of links, you click on one of them, and it takes you 20 frames down, into a label called let's say "products" then, when rolling over the links, if you are in the products section, it will jump to the frames inside, so, eg...

if (framelabel = home){
gotoandplay(1);
}elseif (framelabel = products){
gotoandplay (10);
}

etc...if I can't do it with frame label, i'll just do it a different way, but i'd like to use something like the label to group everything...

get it?
Caden
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top