Flash player stuck at Frame 1 after calling a function

爷,独闯天下 提交于 2019-12-02 03:32:33

Most likely (because you're loading in resources from the internet, and it works when you test), this has to do with the security settings of your application.

Go to your publish settings file -> publish settings.

You'll see a drop down labelled Local playback security. Ensure this is set to access network only and not the default acess local only.

This hangs up a lot of people when they first start using flash.


It's always good practice too, to listen not just for the COMPLETE event on your loaders, but also for error events such as:

loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandlerFunction);
loader.addEventListener(IOErrorEvent.NETWORK_ERROR, ioErrorHandlerFunction);
loader.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandlerFunction);

In your case, it's probably throwing a security error.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!