ActionScript 3.0 有多少个加载器?
我想在我的 Flash 视频上加载 2 个不同的元素:
第一个是动态照片(我从外部变量获取特定数字) 后者是一个 swf 视频...
我的问题是?
我是 AS3 的新手,我发现我需要一个加载器并且我可以加载所有内容..但是我必须有多少个加载器?我可以只使用一个更改结束事件时调用的函数吗?
非常感谢。
埃马努埃莱
I want to load 2 different elements on my flash video:
First is a dynamic photo (I take the specific number from an external variable)
Latter is a swf video...
My question is?
I'm new to AS3, I saw that I need a loader and I can load everything.. but how many loaders I must have? Can I use only one changing the function called on end event?
Thank you very much.
Emanuele
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
为您要加载的每个资源使用加载器。加载的资源将附加到该加载器。
看看这个 http://fluxdb.fluxusproject.org/libraries/135-bulk -loader 或这个 http://fluxdb.fluxusproject.org/libraries/243- somaloader
两者都将管理加载许多不同的资源。
Use a loader for each asset you want to load. The loaded asset will be attached to that loader.
Have a look at this http://fluxdb.fluxusproject.org/libraries/135-bulk-loader or this http://fluxdb.fluxusproject.org/libraries/243-somaloader
Both will manage loading a lot of different assets.
加载器很像 MovieClips——您需要多少就拥有多少。
Loaders are much like MovieClips - have as much of them as you need.
您可以重用加载器,例如:
这将加载两个图像,但不太适合保持所有内容干净
所以我建议这种方式,
如果您要加载两,三个东西,那么这是很好的,但如果您有几个,则循环功能优先
You can reuse Loaders, like:
this will load both images but is not very good for keeping everything clean
So I would suggest this way
This is great if you have two, three things you want to load, but if you have several, looping the function is preferred