PDA

View Full Version : preloader won't work!



Inflicted
September 16th, 2003, 10:49 AM
I copied a preloader from kirupa, and it works fine on all my movies, but not on this one. It's a movie with a movieclip in it. Here's the code on the functions layer:

function loadSWF(swfName) {
clip_mc.loadMovie(swfName);
}

Could'nt copy the rest of the code, message becomes too long. Anyway, I tried a couple of things, but not enough experience to get it to work. Anyone can help?
Here's the files.
http://www.tantesteef.nl/files.zip

regards

dizknee
September 16th, 2003, 12:10 PM
post all the code, im lazy and @ work, dont have flash here

Inflicted
September 16th, 2003, 01:20 PM
frame 1 layer 2:
bytes_loaded = math.round(this.getbytesloaded());
bytes_total = math.round(this.getbytestotal());
getPercent = bytes_loaded/bytes_total;
this.loadbar._width = getPercent*100;
this.loadtext = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndStop(4);
frame 2:
gotoAndPlay(1);

Inflicted
September 16th, 2003, 01:21 PM
frame 3:

var xmlText = new XML();
xmlText.tf = textBox;
xmlText.onData = function(data) {
this.tf.html = true;
this.tf.htmlText = data;
};
xmlText.load("scherm.txt");

regards!

dizknee
September 16th, 2003, 01:40 PM
and so wut exactly is/isn't it doing?

Inflicted
September 16th, 2003, 02:08 PM
When I test my movie, and press twice, I don't see the preloader. In my other files I see it working. I don't have a clue why...

Thanks

regards