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

**URL:** <https://forum.kirupa.com/t/conditional-loop-newbie-question-should-be-easy-d/247142>\
**Category:** flash\
**Created:** [December 18, 2007, 9:52pm UTC](https://forum.kirupa.com/t/conditional-loop-newbie-question-should-be-easy-d/247142 "2007-12-18T21:52:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![999chris](https://avatars.discourse-cdn.com/v4/letter/9/f17d59/32.png) [@999chris](https://forum.kirupa.com/u/999chris)\
**Post date:** [December 18, 2007, 9:52pm UTC](https://forum.kirupa.com/t/conditional-loop-newbie-question-should-be-easy-d/247142/1 "2007-12-18T21:52:56Z")

</div>

Hello,

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.

```auto

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

```auto
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?
