[Pulled this from Adobe Docs] – If you need to identify certain scene objects (name, number of frames, frame labels) for a scene in the MovieClip instance.
The following code illustrates how to use the scenes property of a MovieClip object named mc1:
import flash.display.Scene;
for (var i:uint = 0; i < mc1.scenes.length; i++) {
var scene:Scene = mc1.scenes[i];
trace("scene " + scene.name + ": " + scene.numFrames + " frames");
}
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.