Hi,
Working in Flash CS5 and using ActionScript 2.0 I’m trying to attach a preloader to a MovieClip which has a loader component inside to load an external jpeg. The MovieClip is inside a another MovieClip. I’ve used the same preloader to load my main website and it works fine. I also want to have a preloader for my main photos as they take about a second to load and during this time there is just a blank space that shows.
Below is the code for the preloader;
stop();
onEnterFrame = function(){
var percent_loaded = _root.getBytesLoaded()/_root.getBytesTotal();
preloader_mc.value = percent_loaded;
if (percent_loaded == 1){
delete onEnterFrame;
play();
}
}
I’ve changed the _root. part to this. as the MovieClip is not on the main timeline. Any idea how to get the preloader working on my photos?
Thanks.