开发者

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

开发者 https://www.devze.com 2023-01-15 01:57 出处:网络
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 en

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

精彩评论

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