I have a master to wich I’m loading external swf’s. The preloader begins fine but when it reaches 10-12 % loaded the swf that I’m loading shows up. This leaves the preloader in it’s place continuing counting… I want the preloader to stay until 100 % and THEN I want the external swf to show. Anyone understand my problem?
The code I’m using is this;
import mx.transitions.Tween;
import mx.transitions.easing.*;
stop();
var loaderIn:Tween = new Tween(loader, “_x”, Back.easeOut, -140, 20, 0.5, true);
// Navigation preloader
var mcl:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadProgress = function(target,loaded,total) {
loader.loaderText.text = Math.round((loaded/total) * 100) + “%”;
}
mclListener.onLoadInit = function() {
var loaderOut:Tween = new Tween(loader, “_x”, Back.easeOut, 20, 100, 0.5, true);
}
mcl.addListener(mclListener);