Friday, July 4, 2008

How to get the frame number

HI,
This is not much useful but will be needed for some reason.
There is a function called _currentframe which is used to get the current time line frame.
This is also used inside the movie clip like movieclip_name._currentframe which will return the particular movie clip's current frame number.

eg
trace(mc_1._currentframe );

displayes the mc_1 movie clip current frame number

No comments: