I want to load external swf in movieclip and next external swf should load Automatically


i want load external swf in movieclip , next external swf should load automatically when current swf finished in as3.

 

how can can check total frame , current frame of imported swf in movie clip.

 

any appreciated

 

regards,

jatin dembla

in as3 use loader class (not movieclips) load external swfs.

 

you can use event.complete event listener (applied loader's contentloaderinfo property) check when loading complete , start next swf loading.

 

you can use loader's content property (caste movieclip) determine info (including totalframes) loaded swf's main timelnie (once loading initialized, totalframes, or complete, other properties height , width).

 

var loader:loader=new loader();

loader.contentloaderinfo.addeventlistener(event.complete,loadcompletef);

loader.load(new urlrequest("swf1.swf"));

var loadedswf:movieclip;

 

function loadcompletef(e:event):void{

loadedswf=movieclip(loader.content);

trace(loadedswf.totalframes);

}



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Could not place because the source rectangle is empty

Thread: Using smartcard reader with vpnc

Adobe Font Folio 7.0 or just 7?