View Full Version : Preloader for the whole flash document
jeros10
March 17th, 2009, 10:25 AM
Right now it seems that the preloader is only showing loading to when the first frame that a movie clip is on. instead loading through all the frames. any thoughts?
outback
March 17th, 2009, 10:35 AM
I Don't know what you want but this might help...
this.LoaderInfo.addEventListener(ProgressEvent.PRO GRESS, function(){
your_loader_actions()
});
this.LoaderInfo.addEventListener(Event.COMPLETE, function(){
what_to_do_after_loading_is_complete()
});
GrndMasterFlash
March 17th, 2009, 11:18 AM
here is a nice little preloader i have made, it should be pretty easy to use, i have tried to make decent documentation.
anyways the basics of what your tring to do!
so however you choose to update, make a function and assign whileLoading and another function to decide what to do when your done loading:
function trackLoad(){
var per:Number = Math.round(100*Preloader.percent);
ur_mc.gotoAndStop(per);
}
function doneLoad(){
ur_mc.visible = false;
}
whileLoading = trackLoad;
onLoaded = doneLoad;
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.