Flash 中的外部资源
嘿大家。我正在开发一个最初用于 HTML 的应用程序,但我最近得出的结论是,对于我的目的而言,最好的做法是使用 Flash。
我需要的一件大事是能够从外部文件引入影片剪辑并在运行时将它们添加到我的主影片中(元素的动态数量、皮肤等)。
不需要完整的代码,但是我可以使用一些帮助来追踪资源,以了解如何成功地完成这些事情。教程、最佳实践……常见的嫌疑人。
我已经使用 Flash 一段时间了,并且曾经在 AS2 中非常轻松地完成此操作,但在之前的尝试中,我在使用类和 addchild 时遇到了一些问题,因此我们将不胜感激。
谢谢!
Hey all. I'm working on an application that was originally intended for HTML, but I've recently concluded that the best thing to do for my purposes is to do it in Flash instead.
One of the big things I need is to be able to bring in movieclips from external files and add them to my main movie at runtime (dynamic number of elements, skinning, etc.)
Don't need full-on code for this, but I could use some assistance in tracking down the resources to learn how to do these things successfully. Tutorials, best practices… The usual suspects.
I've been using Flash for a while now, and used to do this pretty easily in AS2, but I've had some hiccups using classes and addchild in an earlier attempt, so any help would be much appreciated.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用于此类操作的主要工具是
flash.display。加载器
。它可以加载外部图像、电影和 Flash 文件,加载后您还可以访问这些文件的属性(或库,如果您在 Flash IDE 中创建它)。The main tool for such things is
flash.display.Loader
. It can load external images, movies and flash files and when it's loaded you can also access the properties of such (or the library, if you create it in the Flash IDE).