# Using return;

**URL:** <https://forum.kirupa.com/t/using-return/284261>\
**Category:** Uncategorized\
**Created:** [March 17, 2009, 11:26am UTC](https://forum.kirupa.com/t/using-return/284261 "2009-03-17T11:26:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivant](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@sivant](https://forum.kirupa.com/u/sivant)\
**Post date:** [March 17, 2009, 11:26am UTC](https://forum.kirupa.com/t/using-return/284261/1 "2009-03-17T11:26:13Z")

</div>

i created a thumb gallary using [COLOR=blue]moviecliploader[/COLOR] and an [COLOR=blue]onLoadInit[/COLOR] function. in the [COLOR=blue]onLoadInit[/COLOR] i added an [COLOR=blue]if[/COLOR] event where i have a [COLOR=blue]return[/COLOR]; hoping it would quit the function.

```auto

if (stat == currentId) {
  //happens when thumbs is pressed from main page
  if (bigPictActive == 1) {
   stringHolder = _root.catItems0[m][1].slice(12, _root.catItems0[m][1].length);
   for (homeIndexBigPic=0; homeIndexBigPic<_root["catItems"+currentId].length; homeIndexBigPic++) {
    stringHolderB = this["catItems"+currentId][homeIndexBigPic][1].slice(12, this["catItems"+currentId][m][1].length);
    if (stringHolderB == stringHolder) {
     this.container2["tatHolder"+homeIndexBigPic]._x = 30;
     this.container2["tatHolder"+homeIndexBigPic]._y = -30;
     return;
    }
   }
  } else if (bigPictActive == 2) {
   this.container2["tatHolder"+statNum]._x = 30;
   this.container2["tatHolder"+statNum]._y = -30;
  }
 }

```

i think the return is not working?
