问题描述
是否有可能从一个对象类里面拉根时间轴的设置currentFrame?通常,currentFrame调用只检查它连接到一个对象类中的影片剪辑的框架,所以你会怎么去从Object类文件中检查整个项目的框架?
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?
编辑:没关系,我找到了我一直在寻找。所有你需要做的就是使用影片剪辑(根).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.
推荐答案
没关系,我找到了我一直在寻找。所有你需要做的就是类型转换 根
到影片剪辑
是这样的:
Nevermind, I found what I was looking for. All you have to do is typecast root
to MovieClip
like this:
MovieClip(root).currentFrame
这篇关于从内对象currentFrame根时间轴的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!