# Multiple onRollOver-onRollOut on nested MovieClips

**URL:** <https://forum.kirupa.com/t/multiple-onrollover-onrollout-on-nested-movieclips/155246>\
**Category:** open source\
**Created:** [July 15, 2005, 6:28pm UTC](https://forum.kirupa.com/t/multiple-onrollover-onrollout-on-nested-movieclips/155246 "2005-07-15T18:28:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lordkiller](https://avatars.discourse-cdn.com/v4/letter/l/9fc29f/32.png) [@lordkiller](https://forum.kirupa.com/u/lordkiller)\
**Post date:** [July 15, 2005, 6:28pm UTC](https://forum.kirupa.com/t/multiple-onrollover-onrollout-on-nested-movieclips/155246/1 "2005-07-15T18:28:16Z")

</div>

As we now, u cant have multiple onRollOver-onRollOut on nested MovieClips becouse they comflict each other, and the use of the hitTest is very unpredictible ☹ and give some surprising results 🙂  
This apply also for behavoirs as buttons inside of MovieClips.

So here is a prototype to manage this problem(Flash MX).

If u find a better code/way, or can improve this code I want to know. Also if somebody translate to AS2, please post the result.
