brutteforcce
Technical User
I use a lot in my site a movie clip loader called myMCL. Every time it loads something the preloader is working. Firt I thought that it is a good idea but now I want that preloader to preload all the swf-s that I load using the movie clip loader...
stop();
//--------------------<MCL>-----------------------\\
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number) {
_level50._visible = true;
var preloadPercent:Number = Math.round((loadedBytes / totalBytes) * 100);
_level50.preloader.gotoAndStop(preloadPercent);
}
myListener.onLoadComplete = function(target_mc:MovieClip) {
_level50._visible = false;
}
//--------------------</MCL>-----------------------\\
// trigger the MCL to load these assets:
myMCL.loadClip("trigger.swf", 5);
myMCL.loadClip("preloader.swf", 50);
Please help... Thanks!
stop();
//--------------------<MCL>-----------------------\\
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number) {
_level50._visible = true;
var preloadPercent:Number = Math.round((loadedBytes / totalBytes) * 100);
_level50.preloader.gotoAndStop(preloadPercent);
}
myListener.onLoadComplete = function(target_mc:MovieClip) {
_level50._visible = false;
}
//--------------------</MCL>-----------------------\\
// trigger the MCL to load these assets:
myMCL.loadClip("trigger.swf", 5);
myMCL.loadClip("preloader.swf", 50);
Please help... Thanks!