开发者

Calling in an external SWF. How to Pre-load?

I have a project where clicking on one of a series of spots on an object will pull in a SWF file related to that particular spot. (Think of a car; clicking on the engine w开发者_如何学Cill load the engine.swf and clicking on the wheel will load wheel.swf).

Do I add a pre-loader to the Main timeline or do I add one that plays immediately on the external SWFs?


Add a preloader to the Main Timeline, if you add it to the external SWF , it will not start playing until that swf is loaded which defeats the purpose.

In the MainTimeline, your preloader will react as soon as the loading process starts, i.e. when the size of the swf to be loaded is known ( bytesTotal ).

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜