I created an image viewer and added a preloader for all the images with this script;
Everything worked fine but I noticed my .swf was loading a little slow so I added a preloader to the entire .swf with this script in a new scene;
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) {
gotoAndPlay(“Scene 1”, 1);
}
This preloader works fine but now the viewer script in Scene 1 doesn’t seem to execute at all. Anyone have any ideas??