# Code help

**URL:** <https://forum.kirupa.com/t/code-help/189785>\
**Category:** Uncategorized\
**Created:** [June 6, 2006, 6:56am UTC](https://forum.kirupa.com/t/code-help/189785 "2006-06-06T06:56:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabiopb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/fabiopb/32/1886_2.png) [@fabiopb](https://forum.kirupa.com/u/fabiopb)\
**Post date:** [June 6, 2006, 6:56am UTC](https://forum.kirupa.com/t/code-help/189785/1 "2006-06-06T06:56:40Z")

</div>

hi all! i cannot figure out what the error is. i have a movieclip, for a navigation bar, that when i hover over it, it should move up and stop, then when i move out of it, move back to its original.  
this ‘home\_mc’ is 20 frames long, at frame 1 i have included a stop(); action, also at frame 10, and at 20 (although not necessary there), but the movieclip will not play… i tried replacing enterFrame with load, but without success…

```auto
onClipEvent (enterFrame) {
    home_mc.onRollOver = function () {
        gotoAndPlay('up');
    }

    home_mc.onRollOut = function () {
        gotoAndPlay('down');
    }
}

```
