影片剪辑上的 SWC 实例名称?

发布于 2024-08-22 04:04:26 字数 88 浏览 8 评论 0原文

是否可以将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

淤浪 2024-08-29 04:04:26

勾选符号属性中的“导出为 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 a Driver 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 your Car.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文