help!
i have a movie (called movie1).
this contains an MC (called “ranimageMC”) that is a random image loader from an array:
[COLOR=Red]pic_arr = [“images/01”, “images/02”, “images/03”, “images/04”, “images/05”, “images/06”, “images/06”, “images/07”, “images/08”, “images/09”, “images/10”;
ranNum = Math.floor(Math.random()*pic_arr.length);
ranimag.loadMovie(pic_arr[ranNum]+".jpg");
[COLOR=Black]i have a movie2 which movie1 is loaded into. movie2 has a preloader for movie1 but it reveals too early as the random image isn’t fully loaded. I think the code i need to put in needs to go in here somewhere but i’m stuck:
[COLOR=Red]onClipEvent (enterFrame) {
if (!loaded && this._url != _root._url) {
if (this.getBytesLoaded() == this.getBytesTotal()) {
loaded = true;
_root.transition.gotoAndPlay(“opening”);
}
}
}
[/COLOR]
thanks
[/COLOR][/COLOR]