【发布时间】:2015-04-06 18:06:16
【问题描述】:
简单的问题:如何为不同的对象(显然在不同的框架上)重用实例名称?我真的希望能够为我的所有场景使用相同的实例名称“ground”,即使这些地面实例属于不同的类。我真的不想把它们命名为“ground0”、“ground1”等。我意识到有办法解决这个问题,但我不想在所有这些额外的工作上胡闹。话虽如此,如何在不向我抛出此警告的情况下重用实例名称“ground”?:
Menu, Layer 'ground', Frame 1 Warning: The instance name 'ground' is declared on an object of type Ground but there is a conflicting use of the instance name 'ground' on an object of type Ground2.
顺便说一句,我意识到一个实例应该是一个特定对象的出现,但老实说,我不太明白不允许在适当的时候重用实例名称的意义。任何帮助将不胜感激。
【问题讨论】:
标签: actionscript-3 flash