# Simple if statement confusing me

**URL:** https://forum.kirupa.com/t/simple-if-statement-confusing-me/136018
**Category:** Uncategorized
**Created:** [February 1, 2005, 7:00pm UTC](https://forum.kirupa.com/t/simple-if-statement-confusing-me/136018 "2005-02-01T19:00:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![rhamej](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rhamej](https://forum.kirupa.com/u/rhamej)
#### Post date: [February 1, 2005, 7:00pm UTC](https://forum.kirupa.com/t/simple-if-statement-confusing-me/136018/1 "2005-02-01T19:00:42Z")

</div>

Im trying to thumbnails in incremental order. There will be only 10 thumbs and 10 pictures that will be changed by the client. So I dont need any thing complicated. What I am trying is something like this.

```auto

onClipEvent(load){
this._visible=false;
this.thumbclip.loadMovie("thumb1.jpg");
}
onClipEvent(enterFrame){
if(this.thumbclip.getBytesLoaded==this.thumbclip.getBytesTotal){
this._visible=true
_parent.nextFrame();
delete this.onEnterFrame
}else{_parent.gotoAndStop(15);
}

```

If I take \_parent.nextFrame(); it works, but then they all load at once, but if I leave it in the thumbs dont even show up. Its like the \_mc trys another onEnterframe again and the code get obliverated.  
And my delete this.onEnterFrame doesnt work if I trace it. it just keeps looping. What am I doing wrong?
