Skip to main content
October 18, 2006
Question

Getting the frame label

  • October 18, 2006
  • 3 replies
  • 414 views
Is there a way to return the value of the frame labels?

I want to create a list of all the frame labels to use as a navigation tool.

Thanks.

Rob Childress
This topic has been closed for replies.

3 replies

kglad
Community Expert
Community Expert
October 19, 2006
you're welcome.
kglad
Community Expert
Community Expert
October 19, 2006
again, no. you cannot use a.s.1.0 and you cannot use a.s. 2.0 to access frame labels. a.s. 3.0 does allow frame label access as explained by ns.

but if you only have 4 frame labels, you can just hardcode those frame numbers in an array, select a random array index and goto that frame number.
kglad
Community Expert
Community Expert
October 18, 2006
not with a.s. 2.0.
October 19, 2006
In AS3, it's extremely simple:

this.currentLabels is an array of FrameLabels with name and frame properties.
nivek311
Participant
October 19, 2006
Ok - so is there a way to randomly select a frame label along a timeline using AS1 or AS2? I have 4 labels along approx 2500 frames that I need to randomly go to on load. Just a random quote rotator. I'm currently using this:
labelselect = random(_currentframe)+1100;
_root.allquotes.gotoAndPlay(labelselect);

Thanks ...