currentFrame of root timeline from inside object

2019-02-25 18:12发布

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 from 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.

1条回答
一纸荒年 Trace。
2楼-- · 2019-02-25 19:13

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

MovieClip(root).currentFrame
查看更多
登录 后发表回答