PDA

View Full Version : Create a frame Label on a specific frame via actionscript


Toyfruit
08-06-2009, 04:57 PM
Does anyone know if its possible, via AS3, to create a frame label in a movieclip on a specific frame.

Obviously I can do it by manually by setting up labels on the timeline within the target movieclip, but I would rather use an array so I can loop through it, creating a label name on a the specific frame each time?

so for example I would end up with:
myLabelOne on frame 10
myLabelTwo on frame 25
myLabelThree on frame 115

etc

Any help would be much appreciated!

CyanBlue
08-06-2009, 05:21 PM
Howdy and Welcome... ;)

The FrameLabel class does not have any setter methods, so I think you cannot dynamically add frame labels via ActionScript...

Toyfruit
08-06-2009, 07:24 PM
Ah OK, thanks mate. I thought I might be able to do something similar to adding cuepoints for an FLV. Nevermind, guess I'll have to do it the old fashioned way instead

CyanBlue
08-06-2009, 08:12 PM
Yeah... I think that's the only way to do it...