Hello! I want to make a preloader from a rendered animation of 100 frames. And for each procent loaded, I want to be displayed the corespondent frame of the animation. (ex: if is loaded 57% from site, I want to see the frame 57 of the animation). Who can write me a simple code for this? PLS PLS PLS

I used this code from a website (where worked just fine there...)

loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
nextScene();
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop(_root.frame);
}

....and I get an error: "Target not found: Target="undefined" Base="_level0"