Preloader?

hey. a while back i remember following a preloader tutorial which had a method of

% of frames loaded out of 100 = preloader animation frame

i may be explaining it bad… but for example

1% loaded = play frame 1 of the preloader animation
2% loaded = play frame 2 of the preloader animation
3% loaded = play frame 3 of the preloader animation
4% loaded = play frame 4 of the preloader animation
etc…
that way you could have an animation of say, a chicken crossing the road which lasts 100 frames, and it animates according to the % of the entire movie loaded so far

can anyone explain a method for this, or post up a tutorial which uses this way
thanks in advance

edit:
nvm didnt look around enough, i think this is similar to what i was after
http://www.kirupa.com/developer/actionscript/tween_as_preloader.htm

this topic comes up alot

preloaders have to be small and simple else you will need a preloader for the preloader

what you are asking is fairly simple

MC.gotoAndStop(% loaded)

ah, much thanks. so something like this would work

load_bytes = Math.round(_root.getBytesLoaded());
load_total = Math.round(_root.getBytesTotal());
load_percent = (load_bytes/load_total)*100;

mc.gotoAndStop(load_percent);

should do

one problem is that it may skip if it loads quickly

yeah thats no problem ill put a short transition before and after the preload so its not completely unnoticed. should be loading a 2meg file though (making short-movie for class)

thanks for the help again, night