开发者

global content loaded event listener

开发者 https://www.devze.com 2023-04-01 18:49 出处:网络
I need an event listener which is global so when every content is loaded a function fires up and function places this content. I\'ve tried

I need an event listener which is global so when every content is loaded a function fires up and function places this content. I've tried

stage.contentLoaderInfo.addEv开发者_StackOverflow社区entListener(Event.COMPLETE,function(evt:Event){placeem(evt, "stgW","stgH")});

but that's not right, gives me errors


No such function is available in Flash. You need to control yourself the loading of your assets and fire up the function when they are all done. A loading queue such as this one might help:

http://blog.hydrotik.com/2007/10/29/queueloader-as3-rev-7-garbage-collection-soundmanager/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号