# Noob onClipEvent (load) Question

**URL:** <https://forum.kirupa.com/t/noob-onclipevent-load-question/108213>\
**Category:** Uncategorized\
**Created:** [April 22, 2004, 5:39pm UTC](https://forum.kirupa.com/t/noob-onclipevent-load-question/108213 "2004-04-22T17:39:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kasperoff](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kasperoff](https://forum.kirupa.com/u/kasperoff)\
**Post date:** [April 22, 2004, 5:39pm UTC](https://forum.kirupa.com/t/noob-onclipevent-load-question/108213/1 "2004-04-22T17:39:03Z")

</div>

Firstly Hello to all.

I’m hoping you can help me out with an issue I’ve had for a week or so now.

I have mad a simple ‘move to mouse’ movie which I intend to use as a kind of rollover for a nav menu. The following script from the Kirupa tutorial does this well:

onClipEvent (load) {  
\_y = 0;  
speed = 5;  
}  
onClipEvent (enterFrame) {  
endY = \_root.\_ymouse;  
\_y += (endY-\_y)/speed;  
}

However the problems start when I use this Nav movie in the main site movie. As you have probably guessed, the mouse over then uses the x and y co-ordinates from the \_root movie. What I really want to happen is for the above script only to apply to the Nav movie, and nothing else. An example of what I am trying to achieve can been seen here: [[color=#003366]www.3dcom.co.uk[/color]](http://www.3dcom.co.uk/).

See how the mouse over in the Nav bar is restricted to the nav bar only.

Any help is greatly appreciated. Like I say, I am new to this. I have had numerous attempts, but can’t get the syntax right!
