Hey, im having some trouble with my preloader. When i simulate the download as the preloader is loading you can also see the content from the external .swf file loading with it which i dont want, i want the content all to start playing once the download has completed not during the download.
Does anyone know why this is? heres my code for the preloader.
Code:var myMCL:MovieClipLoader = new MovieClipLoader(); var myListener:Object = new Object(); myMCL.addListener(myListener); myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) { var loaded:Number = Math.round((bytesLoaded/bytesTotal) * 100); progressBar.gotoAndStop(loaded); } myListener.onLoadInit = function (target_mc:MovieClip) { progressBar._visible = false; } myListener.onLoadStart = function (target_mc:MovieClip) { progressBar._visible = true; } myMCL.loadClip("work.swf","container");


Reply With Quote