开发者

currentFrame of root timeline from inside object

开发者 https://www.devze.com 2023-03-13 01:23 出处:网络
Is it possible to pull the currentFrame of the root timeline from inside an object class? Normally a currentFrame call only checks the frame of the movieclip it\'s attached to within an object class,

Is it possible to pull the currentFrame of the root timeline from inside an object class? Normally a currentFrame call only checks the frame of the movieclip it's attached to within an object class, so how would you go about checking the frame of the entire project fr开发者_高级运维om within the object class file?

edit: Nevermind, I found what I was looking for. All you have to do is use MovieClip(root).currentFrame and it works just fine. Consider the question answered.


Nevermind, I found what I was looking for. All you have to do is typecast root to MovieClip like this:

MovieClip(root).currentFrame
0

精彩评论

暂无评论...
验证码 换一张
取 消