# Delete onRollOver

**URL:** <https://forum.kirupa.com/t/delete-onrollover/204143>\
**Category:** Uncategorized\
**Created:** [October 17, 2006, 2:23pm UTC](https://forum.kirupa.com/t/delete-onrollover/204143 "2006-10-17T14:23:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![decemberspring](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/decemberspring/32/2915_2.png) [@decemberspring](https://forum.kirupa.com/u/decemberspring)\
**Post date:** [October 17, 2006, 2:23pm UTC](https://forum.kirupa.com/t/delete-onrollover/204143/1 "2006-10-17T14:23:25Z")

</div>

Hi, i am having some problems. Anyone having an idea on how i can solce this:\>

i have this scroller: [http://www.mindcrusher.ro/probleme/imp.swf](http://www.mindcrusher.ro/probleme/imp.swf)  
working fine

When i load the movie in a container in here: [http://www.mindcrusher.ro/probleme/bun.swf](http://www.mindcrusher.ro/probleme/bun.swf) , there are problems. same file, but getting stuck and loosing the on roll over for the picture-buttons.

I think there is a problem with this code:

```auto
panel.onRollOver = panelOver;

function panelOver()
{
    this.onEnterFrame = scrollPanel;
    delete this.onRollOver;
}

var b = stroke.getBounds(_root);

function scrollPanel()
{
    if (_xmouse < b.xMin || _xmouse > b.xMax || _ymouse < b.yMin || _ymouse > b.yMax )
    {
        this.onRollOver = panelOver;
        delete this.onEnterFrame;
    }
    var xdist = _xmouse - 512; //jumatate din lungimea fimului
    panel._x += Math.round(-xdist / 50); //speed
    if (panel._x >= 13)
    {
        panel._x = 13;
    }

    if (panel._x <= -350)
    {
        panel._x = -350;
    }
}

```

i took it from a tutorial. I think it’s something with the “delete this.onRollOver” line, but i am not sure, because i never user this before (delete onrollover thingies).

Thank you  
dS
