Flex:如何加载 .swf 并使用其库?
我在 .swf 的库中有一个符号,其链接名称为“Pana”。 Pana 符号只是一个 100 帧动画,我想在 Flex 中对其进行时间轴控制。 那么如何加载 .swf,然后将 Pana 符号添加到显示列表并控制其时间线?
谢谢!
I have a symbol in a .swf's library, with a linkage name of "Pana". The Pana symbol is just a 100 frame animation that I would like to have timeline control over in Flex. So how can I load the .swf and then add the Pana symbol to the display list and control it's timeline?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您将使用 ApplicationDomain 类中的 getDefinition 函数。 可以在这里找到一个相当简单的示例:
http://help。 adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e07.html
You would use the getDefinition function from the ApplicationDomain Class. A fairly simple example can be found here:
http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e07.html
您可以将该符号嵌入到 MXML 中:
然后将其用作:
You can embed that symbol in your MXML:
And then use it as: