Preloader for loadMovie in AS2?
First things first, please don't recommend I change to AS3 for this. It's far too late for that and not my project to be dictating.
So I'm loading some external swfs in with the loadMovie command, in the normal manner with a button:
on (release) {
loadMovie("swfs/example-1.swf", _root.container);
}But what I need, is to wedge a preloader in there somehow. As the swfs are around 1mb each.
I'm already using the following as a preloader for the main file, so an adaptation of it would be very welcome so I can co-ordinate the graphics:
var amountLoaded:Number = _root.getBytesLoaded() / _root.getBytesTotal();
preloaderText.text = Math.round(amountLoaded * 100) + "%";
---
if (_root.getBytesLoaded() == _root.getBytesTotal())
{ gotoAndPlay(3); }
else
{ gotoAndPlay(1); }
So would there be a way to wedge my preloader into that first lot of code?
