# If else question

**URL:** <https://forum.kirupa.com/t/if-else-question/133900>\
**Category:** Uncategorized\
**Created:** [January 12, 2005, 9:31pm UTC](https://forum.kirupa.com/t/if-else-question/133900 "2005-01-12T21:31:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![imbuez](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/imbuez/32/645_2.png) [@imbuez](https://forum.kirupa.com/u/imbuez)\
**Post date:** [January 12, 2005, 9:31pm UTC](https://forum.kirupa.com/t/if-else-question/133900/1 "2005-01-12T21:31:12Z")

</div>

Hi  
Im having a little problem with statement on my 1st frame, dont know if im just being a fool or what.

```
 Ive just finished a preloader for a website im just finishing for a client. I have some actions on the first frame

```

```php

     if (getBytesLoaded()!=getBytesTotal()) {
     	gotoAndPlay(2);
     } else {
     	gotoAndStop(20);
     }
     // end if
     

```

Im trying to check if the movie has been loaded before. If so jump straight to it, if not play upto the frames where i have a preloader animation on it.Im using this on my MC whci rolls out over 100fr

```php

     onClipEvent (enterFrame) {
     	gotoAndStop(int(_parent.getBytesLoaded()*100/_parent.getBytesTotal()));
     }
     

```

```
My explanation is probably not going to make much sence, here is my .fla.

[download_me_please](http://www.imbuez.co.uk/preload2.zip)

 Thanks in advance for looking/helping

```

ding/…
