Hi
I have my main movie and when arriving at certain frames I want to load a random .swf
I am using this
[AS]loadMovieNum(“random”+(Math.ceil(Math.random()*5))+".swf", 1);[/AS]
which works fine
but when i add a preloader to the external movie the main movie wont open it
the preloader code is this:
var loadAmount = _totalframes;
if (_framesloaded == loadAmount) {
gotoAndPlay(“build”, 1);
} else {
loaded = Math.round(getBytesLoaded() / 1024);
total = Math.round(getBytesTotal() / 1024);
percent = Math.round((loaded/total) * 100);
bytesLoadedOutput = loaded;
bytesTotalOutput = total;
percentOutput = percent + “%”;
loadBar._width = loadBarHousing._width * (percent / 100);
gotoAndPlay(“loading”);
}
I’m stumped :sigh:
any ideas??
thanks very much