# Passing params thru MOUSE\_OVER event?

**URL:** <https://forum.kirupa.com/t/passing-params-thru-mouse-over-event/232602>\
**Category:** Uncategorized\
**Created:** [July 16, 2007, 11:28am UTC](https://forum.kirupa.com/t/passing-params-thru-mouse-over-event/232602 "2007-07-16T11:28:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shellbryson](https://avatars.discourse-cdn.com/v4/letter/s/4bbf92/32.png) [@shellbryson](https://forum.kirupa.com/u/shellbryson)\
**Post date:** [July 16, 2007, 11:28am UTC](https://forum.kirupa.com/t/passing-params-thru-mouse-over-event/232602/1 "2007-07-16T11:28:35Z")

</div>

I have a function that needs to be called when the mouse is moved over a button that has been attached to the stage. The function is called scrollZone. However, I need to pass scrollZone some parameters… but how? Whatever I do seems to result in a compile error.

```auto

btnDown.addEventListener(Event.MOUSE_OVER, scrollZone);

```

I want to be able to do something like this:

```auto

btnDown.addEventListener(Event.MOUSE_OVER, scrollZone(param1,param2,param3));

```

Can someone give me the correct syntax?

Thanks!
