2007年5月4日星期五

Determining Current Frame Label

MovieClip (flash.display.MovieClip) instances in ActionScript 3 have a couple of new properties called currentLabels and currentLabel. currentLabels is an array of FrameLabel (flash.display.FrameLabel) instances describing the frame labels within the movie clip's timeline. Each FrameLabel in the currentLabels array contains two properties: name, and frame. Name provides the name of the label and frame is the frame number on which it exists. currentLabel returns the name of the label associated with the current frame.

ActionScript Code:

var label:String = my_mc.currentLabel;

0 评论: