I name frame 50 _foo (in the IDE).
I can trace this._currentFrame at any time (and get a number).
I can gotoAndPlay("_foo");.
But how can I find out if the current frame IS _foo as the movie plays?
Is this possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In ActionScript 2 there is no way to access the Name / Label of the current frame (this feature was added in ActionScript 3).
However, you could use the following code to determine the current frame number at during playback:
For further reading, be sure to check the Adobe livedocs entry for MovieClip.onEnterFrame