hi,
i made a preloader this way :
stop();
_root.progress._xscale = 0;
_root.onEnterFrame = function() {
var bytes = _root.getBytesTotal();
var bytes_loaded = _root.getBytesLoaded();
if (bytes_loaded == bytes) {
_root.gotoAndPlay(2);
} else {
scale = bytes_loaded/bytes;
_root.progress._xscale = scale;
}
}
“progress” is the instance name of a rectangle - it shows the progression of the loading.
strange thing is : when loading is done, the movie goes to frame 2 of the timeline, but it doesn’t play at all, it stops there. i checked if there was not a stop(); command somewhere, but the script of the preloader is the only script there is.
my hair is becoming gray. i know it’s something obvious, but i don’t seem to find it.
any help on this would be very much appreciated.
thnx in advance,
grenouille.