来自对象内部的根时间线的 currentFrame [英] currentFrame of root timeline from inside object
问题描述
是否可以从对象类内部拉出根时间轴的 currentFrame ?通常,currentFrame 调用只会在对象类中检查它所附加的影片剪辑的帧,那么您将如何从对象类文件中检查整个项目的帧?
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?
没关系,我找到了我要找的东西.你所要做的就是使用 MovieClip(root).currentFrame
并且它工作得很好.考虑所回答的问题.
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.
推荐答案
没关系,我找到了我要找的东西.你所要做的就是像这样typecast root
到MovieClip
:
Nevermind, I found what I was looking for. All you have to do is typecast root
to MovieClip
like this:
MovieClip(root).currentFrame
这篇关于来自对象内部的根时间线的 currentFrame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!