Conditional Loop... Newbie question,.. Should be easy :D


I think ive been a newbie for about 5 years now, kinda dabbled in and out of ActionScript or any kind of programming whats so ever, but i thought its about time I honed my skills a bit.

Ok, I have a preloader and ive got this.

loaded_bytes = Math.round(_root.getBytesLoaded());
loaded_total = Math.round(_root.getBytesTotal());
if (loaded_bytes >= loaded_total) 
{_root.ready = true}


At the moment ive told my root timeline to “stop();” at frame 50 and then ive got

if (ready) {nextFrame;}

Blah, Blah, Blah and my flash project continues, hurrah!

BUT! On testing, my preloader hasnt finished loading by the time we get to frame 50 so… my “if” goes unnoticed and my flash file is stuck at frame 50, forever…
Im just wondering if there is any kind of code that continually checks to see wether a statement is true or not whilst my timeline is at frame 50?