I created a simple preload and it isn’t working. Here is the code: for the first frame:
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent100;
this.loadText = Math.round(getPercent100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(“Scene 1”,480);
}
And for the second frame:
this.gotoAndPlay(“preloader”,1);
I made the preloader movie as a separate scene called “preloader”.
Does anyone out there know if this code is correct? I tried to test it, and it I can’t see the preload movie. I selected under the “view” menu - simulate download, so as to be able to see the preloader, but no luck! Thanks in advance.
-F