来自对象内部的根时间线的 currentFrame [英] currentFrame of root timeline from inside object

查看:15
本文介绍了来自对象内部的根时间线的 currentFrame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从对象类内部拉出根时间轴的 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 rootMovieClip:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆