This came to me as a surprise as there are two properties of a movieclip for the label of a frame. “currentLabel” and “currentFrameLabel” are those two properties which will give you the label string of a particular frame. There is a very subtle difference in these two.
currentFrameLabel : This gives the string value of the label of the current frame. And this is different for each(lets stress,its different for each) frame unless not defined,in that case it would be null.
currentLabel : This too gives the string value of the label of the current frame. But it is same for the in between frames (the frames between 2 different labels). It returns the label of the current frame if its defined,else it returns the label of the previous frame, else it will return the label of the last to last frame. If there are no labels defined from the beginning, then only it will return null.
I am attaching here with a FLA and the main class for it. Compile it and see the traces. Till 50th frame, both “this.currentLabel” and “this.currentFrameLabel” are null. And then “this.currentLabel” holds the value as “_one” till 100th frame,where it changes its value to “_two”. While “this.currentFrameLabel” is null everywhere,except for the particular frames. “this.currentFrameLabel” is “_one” only at 50th frame and “_two” at only 100th frame.
Hope that helps someone out there.
Happy flashing 🙂 Cheers