只有增加孩子当前帧 [英] Only add child to current frame

查看:101
本文介绍了只有增加孩子当前帧的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能给孩子添加到当前帧只?

Is it possible to add a child to the current frame only?

我知道你可以删除/隐藏起来,并生成/再次显示。

I know you can just remove/hide them, and generate/show them again.

不过,是不是有一个更简单的方法?

But isn't there an easier way?

推荐答案

旧校方式:

如果你有一个时间表,你只能在帧中添加一个影片剪辑作为持有人。支架夹只存在于该帧。一旦你达到这个框架您使用code真正的剪辑添加到持有人显示列表:

If you have a timeline you can add a MovieClip as a holder only on that frame. The holder clip only exists on that frame. Once you reach that frame you add the real clip to the holder display list using code:

holder.addChild(新special_clip())<​​/ code>

holder.addChild(new special_clip())

这样,当你切换到另一个画面将被删除。它将然而,需要重新创建下一次你到了框架。

That way it will be removed when you change to another frame. It will however need to be re-created the next time you get to the frame.

这篇关于只有增加孩子当前帧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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