currentFrame of root timeline from inside object

后端 未结 1 1795
刺人心
刺人心 2021-01-22 08:56

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 w

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-22 08:56

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

    MovieClip(root).currentFrame
    

    0 讨论(0)
提交回复
热议问题