简体   繁体   English

Flash外部预加载器加载SWF文件,加载另一个文件

[英]flash external preloader to load a swf thats loading another file

I have my preloader loading my main swf where I'm loading another swf that contains a background. 我的预加载器正在加载我的主瑞士法郎,而我正在加载另一个包含背景的瑞士法郎。

When my preloader is done it shows my main swf but it takes a while after that for the background to load. 当我的预加载器完成后,它会显示我的主SWF文件,但在此之后需要一段时间才能加载背景。

Whats the easiest way to get my preloader to wait until the background swf is done loading? 什么是让我的预加载器等待后台SWF完成加载的最简单方法?

Your main swf must somehow communicate this fact to the preloader - there's no way for the preloader to find out for itself. 您的主要瑞士法郎必须以某种方式将此事实传达给预加载器-预加载器无法自行发现。 Considering having the main swf fire an event that the preloader is listening for, or just use a callback function. 考虑让主swf触发预加载器正在侦听的事件,或仅使用回调函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM