I’ve tried the tutorial and have read through this forum and it’s still not seeming to work properly. These are the errors I get:
Scene=Scene 1, Layer=loadBar, Frame=1: Line 1: Statement must appear within on/onClipEvent handler
bytes_loaded = Math.round(this.getBytesLoaded());
Scene=Scene 1, Layer=loadBar, Frame=1: Line 2: Statement must appear within on/onClipEvent handler
bytes_total = Math.round(this.getBytesTotal());
Scene=Scene 1, Layer=loadBar, Frame=1: Line 3: Statement must appear within on/onClipEvent handler
getPercent = bytes_loaded/bytes_total;
Scene=Scene 1, Layer=loadBar, Frame=1: Line 4: Statement must appear within on/onClipEvent handler
this.loadBar._width = getPercent*100;
Scene=Scene 1, Layer=loadBar, Frame=1: Line 5: Statement must appear within on/onClipEvent handler
this.loadText = Math.round(getPercent*100)+"%";
Scene=Scene 1, Layer=loadBar, Frame=1: Line 6: Statement must appear within on/onClipEvent handler
if (bytes_loaded == bytes_total) {
So I then tried putting the code into the onClipEvent (frame 1) but still got the same message… I’m not sure exactly what I’m going wrong here. When I load the swf move, how exactly do I do that. I went Import Library - movie.swf then went to library, dragged the swf onto the 3rd frame. Is that right? The results I get are sporatic at best, but I always get the same error message as seen above. Sometimes there’s the load bar but no text. Then there’s the text at 100%. And sometimes there’s just swf, but it doesn’t play until you hit enter (I followed your lead and added play() on the frame where it starts).
EDIT UPDATE:
I’ve managed to get it to start the animation but I can’t see whether the progress bar works or not, and I still get those aweful errors… What am I to do?