Can anyone tell me why my simple preload script (below) doesnt work when trying to load a .swf (1.2mb) file that comprises mainly of buttons using actionscript to load and play mp3 sounds from the library. Ive got it working (with various degrees of success on files that contain bitmaps and jpegs, so I know it works…but Im trying to load this simple MP3 preview app and no preload movie at all.
Anyone know of a solution.
thanks
[COLOR=DarkSlateBlue]onClipEvent (load)
{
total = _root.getBytesTotal();
}
onClipEvent (enterFrame)
{
loaded = _root.getBytesLoaded();
percent = int(loaded / total * 100);
_root.txt = percent + “%”;
gotoAndStop(percent);
if (loaded == total)
{
_root.gotoAndPlay(2);
} // end if
}
[/COLOR]