# Lots of objects sharing same mouseover function

**URL:** <https://forum.kirupa.com/t/lots-of-objects-sharing-same-mouseover-function/240277>\
**Category:** Uncategorized\
**Created:** [October 1, 2007, 4:01pm UTC](https://forum.kirupa.com/t/lots-of-objects-sharing-same-mouseover-function/240277 "2007-10-01T16:01:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Grofit](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/grofit/32/4058_2.png) [@Grofit](https://forum.kirupa.com/u/Grofit)\
**Post date:** [October 1, 2007, 4:01pm UTC](https://forum.kirupa.com/t/lots-of-objects-sharing-same-mouseover-function/240277/1 "2007-10-01T16:01:35Z")

</div>

Hello again!

Im trying to use multiple objects in the scene that use the same mouse over event, as the objects are created at runtime so as i cant guarentee how many will exist, its easier and more logical to have 1 event they all call…

Anyway i _thought_ there would be a way to work out whos calling the event, box1,box2 etc… but it doesnt seem to work, i tried event.relatedObject however this comes back as null. So is there some special way to do this, as the adobe documentation doesnt seem to cover this, or do i have to manually to a hit test or something on the event X/Y and the scene box X/Y…
