This content has been marked as final. Show 6 replies
not with a.s. 2.0.
In AS3, it's extremely simple:
this.currentLabels is an array of FrameLabels with name and frame properties.
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;
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.
Nevermind - was easier than I thought. This worked:
labelselect = "quote" + Math.floor(Math.random() * 5);
Thanks for your response kglad - I'm not sure I was explaining what I was trying to do very well.