Hi,
I’ve got a master.fla the loads all the other .swf files i have for my website. Everything is working ok (with exception to a couple of things that I posted earlier)…
I’ve decided to add a preloader to the whole thing everytime something external loads up to the master file… The problem is that my preloader will show up but not move (or show progress it’s just still) and then when the images or the content of the site loads it stays there the whole time overlaying the page…
it was working fine with another mini webiste i built but i have no idea what’s going on right now and it’s really frustrating me…
Here’s the code on the first frame of the master file:
stop();
var theMCL:MovieClipLoader = new MovieClipLoader();
var theListener:Object = new Object();
theMCL.addListener(theListener);
//--------preloader
theListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number){
_level50._visible= true;
var preloadPercent:Number = Math.round((loadedBytes/totalBytes)* 100);
_level50.preloader.gotoAndStop(preloadPercent);
}
theListener.onLoadComplete = function (target_mc:MovieClip) {
_level50._visible = false;
}
theMCL.loadClip("trigger.swf",5);
theMCL.loadClip("preloader.swf",50);
//--------LOADVARS------------------
var theLV:LoadVars = new LoadVars();
theLV.onLoad = function(success){
if (success){
_level10.theTitle_txt.htmlText = theLV.theTitle;
_level10.bio_txt.htmlText = theLV.info;
} else {
_level10.bio_txt.text = "There has been an error. The requested information is not available.";
}
}
I went over this a million times and i rebuilt my preloader over another million… I’ve attached the preloader file incase the issue is in there…
Well, update:
I just figured out what the issue is… but now i am stuck with another issue if you visit the website i am working on http://www.artengine.ca/cgervais/ you can see that the preloader is not working for the navigation buttons at he bottom and only for the gallery on the side… any ideas?