# Delete this.onEnterFrame returns false!

**URL:** <https://forum.kirupa.com/t/delete-this-onenterframe-returns-false/140741>\
**Category:** Uncategorized\
**Created:** [March 14, 2005, 4:12am UTC](https://forum.kirupa.com/t/delete-this-onenterframe-returns-false/140741 "2005-03-14T04:12:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daleth](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/daleth/32/1096_2.png) [@daleth](https://forum.kirupa.com/u/daleth)\
**Post date:** [March 14, 2005, 4:12am UTC](https://forum.kirupa.com/t/delete-this-onenterframe-returns-false/140741/1 "2005-03-14T04:12:29Z")

</div>

Hi guys!

I was doing a lot of work on this gallery code today, but I have one outstanding bug. The FLA is attached. The problem is in the loadPic prototype function: it uses this.\_parent.onEnterFrame to load an image (so it can animate a preloaded), but the attempt to “delete this.\_parent.onEnterFrame” fails! At first I thought it might be because the \_parent is \_root (right?), though that’s not an explanation either. Using this.onEnterFrame does not work at all for some reason, which I don’t understand.

Anyway, have a look at my fla. Excuse its sheer ugliness because it’s really just placeholders for the actual design. I’ve provided two example images, but the xml file still contains all of them, so some of the automatically generated buttons won’t work.

Thanks so much in advance for any information!!
