lucidsurf
April 17th, 2003, 01:24 AM
Hi there everyone... any help with this problem would be much appreciated. I am building a preloader that features an animated character (a movieclip named 'dogLoad'). As the preloader progresses I would like the movieclip to be told to advance further along its timeline. I managed to get it to work once but deleted the code by mistake...:scream:
Here's what I've written (the following doesn't work...)
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadText = Math.round(getPercent*100)+"%";
if Math.round(getPercent*100) > 25 {
tellTarget("/dogLoad") {
gotoAndPlay(2);
}
}
if Math.round(getPercent*100) > 50 {
tellTarget("/dogLoad") {
gotoAndPlay(9);
}
}
if Math.round(getPercent*100)>75 {
tellTarget("/dogLoad") {
gotoAndPlay(20);
}
}
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
Any suggestions on how I can get the tellTarget command to work...? Thanks! :)
Here's what I've written (the following doesn't work...)
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadText = Math.round(getPercent*100)+"%";
if Math.round(getPercent*100) > 25 {
tellTarget("/dogLoad") {
gotoAndPlay(2);
}
}
if Math.round(getPercent*100) > 50 {
tellTarget("/dogLoad") {
gotoAndPlay(9);
}
}
if Math.round(getPercent*100)>75 {
tellTarget("/dogLoad") {
gotoAndPlay(20);
}
}
if (bytes_loaded == bytes_total) {
this.gotoAndPlay(3);
}
Any suggestions on how I can get the tellTarget command to work...? Thanks! :)