是否有跨关键帧闪存管理着如何命名实例文档? [英] Is there documentation on how flash manages named instances across key frames?

查看:193
本文介绍了是否有跨关键帧闪存管理着如何命名实例文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在寻找技术文档关于Flash如何管理与整个关键帧相同名称的对象实例。

I'm looking for technical documentation on how Flash manages object instances with the same name across key frames.

到目前为止,我已经注意到,当打之年的头移动到另一个帧,如果一个对象具有相同名称的相同类型的,那么实例连同其动态设置属性pserved $ P $

So far, I've noticed that when the play head moves to another frame, if an object with the same name has the same type, then the instance is preserved along with its dynamically set properties.

在另一方面,只要发挥头进到一个帧中的命名的实例是一种不同的类型,则它创建新的类型的新实例(与原来的名称),和的原始实例旧型的永久丢弃在命名实例中的所有动态设置的属性都将丢失(因为它是一个新的实例)。

On the other hand, as soon as the play head goes to a frame where the named instance is a different type, then it creates a new instance of the new type (with the original name), and the original instance of the old type is permanently discarded and all dynamically set properties on the named instance are lost (because it's a new instance).

如果你回到原来的框架,它不恢复原来的实例,但将其视为又一个变化,并重新构建了一个新的实例。有描述该行为的任何文档?

If you go back to the original frame, it does not restore the original instance, but treats it as yet another change, and constructs a new instance again. Is there any documentation that describes this behavior?

在时间线实例的连续性类似的问题: HTTP:// WWW。 kirupa.com/forum/showthread.php?t=316612 我也很惊讶,物业结转。这似乎是一个运行时功能,这些都是Flash将创建一个新的实例,只要在接下来的关键帧(实例名称/符号型)对改变(即,如果命名实例目标文件指的是在这两个球关键帧,那么它会保持相同的实例;但如果物镜中下一个关键帧是指一种广场,然后一个新实例广场将被创建)。这是有道理的,但这种行为保证?

Similar question on "continuity of timeline instances": http://www.kirupa.com/forum/showthread.php?t=316612 I too was surprised that properties carry over. It seems like a run-time feature, where Flash will create a new instance, only if the (instance name / symbol type) pair changes in the next key frame (i.e. if named instance "obj" refers to a "ball" in both keyframes, then it will remain the same instance; but if "obj" refers to a "square" in the next keyframe, then a new instance of "square" will be created). It makes sense, but is this behavior guaranteed?

推荐答案

我从来没有见过,因为我在Flash 5开始,因为这正式记录在案。

I have never seen this officially documented since I started with AS in Flash 5.

您的意见匹配我的,但另一种情况是同名,同类型,新的关键帧,不同层,这将重新初始化的AVM1的对象。我不知道是什么AVM2呢,因为我真的尽量避免这些情况,但是这可能是一个体面的方式来获得MC的时间轴上重新初始化,如果您需要。

Your observations match mine, but another case is "same name, same type, new keyframe, different layer" which reinitializes the object in AVM1. I am not sure what AVM2 does, since I really try to avoid these situations, but this can be a decent way to get a MC to reinit on the timeline if you need to.

这篇关于是否有跨关键帧闪存管理着如何命名实例文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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