I’m trying to preload an imported movie, but it still somewhat fails.
The movie is not going to start until every single byte is loaded.
Still when i try it online it starts running before it’s completely loaded.
The code for the preloader
Starts:
loadMovie(“file”,target)
onClipEvent(enterFrame)
{
//textfield
_root.a = this.getBytesTotal();
if(this.getBytesLoaded() < this.getBytesTotal())
{
if(_global.sett == false)
{
this.stop();
}
_root.a = this.getBytesLoaded() + “//” + this.getBytesTotal();
}
if(this.getBytesTotal() <= this.getBytesLoaded())
{
if(_global.sett == false)
{
_global.sett = true;
this.play();
}
_root.a = “FINISHED!”
}
}