影片剪辑上的 SWC 实例名称?
是否可以将 movieclips 编译为 swc,并使用实例名称作为属性名称?当我添加动态文本字段时会发生这种情况,但我也希望在某些 UI 元素上也出现这种情况。
Is it possible to compile movieclips to swc with the instance name as property name? This happends when I add a dynamic text field, but i would like this also on some UI elements.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
勾选符号属性中的“导出为 ActionScript”框并为其指定一个类名称。这将使其显示在 swc 中。
因此,如果您有一个包含
Driver
剪辑的Car
剪辑,您需要在这两个剪辑上选中“导出为动作脚本”。如果您随后为
Driver
剪辑指定一个实例名称,它将显示为您的Car
上的一个属性。Tick the "Export for ActionScript" box in the symbol properties and give it a class name. That will make it show up in the swc.
So if you have a
Car
clip containing aDriver
clip you will need to check "Export for actionscript" on both these clips.If you then give the
Driver
clip an instance name it will show up as a property on yourCar
.