# Cursor position to tigger animation question

**URL:** <https://forum.kirupa.com/t/cursor-position-to-tigger-animation-question/220751>\
**Category:** flash\
**Created:** [March 28, 2007, 9:17pm UTC](https://forum.kirupa.com/t/cursor-position-to-tigger-animation-question/220751 "2007-03-28T21:17:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![worldly1](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@worldly1](https://forum.kirupa.com/u/worldly1)\
**Post date:** [March 28, 2007, 9:17pm UTC](https://forum.kirupa.com/t/cursor-position-to-tigger-animation-question/220751/1 "2007-03-28T21:17:27Z")

</div>

[COLOR=black]Hello All,[/COLOR]  
[COLOR=black] [/COLOR]  
[COLOR=black]I’m fairly new to Flash 8 (Pro) and have used only very basic actionscript.[/COLOR]  
[COLOR=black] [/COLOR]  
[COLOR=black]I have made a navigation menu bar with fly-out sub-menus and have everything working correctly. Now I want to put an animated gradient background movie clip behind the menu and set it up so that when the cursor is over/within the boundary of the gradient clip it will trigger it to gotoandplay x frame, and when the cursor leaves the area, trigger another gotoandplay event.[/COLOR]  
[COLOR=black] [/COLOR]  
[COLOR=black]It seems I can’t set it up with onrollover and onrollout actionscript because of the menu that sits above it, so it seems I need some way or work around to know when the cursor enters and leaves an area or set of coordinates (or in this case is above a certain y coordinate) and trigger.[/COLOR]  
[COLOR=black] [/COLOR]  
[COLOR=black]I found this site [/COLOR]  
[COLOR=black] [/COLOR]  
[http://www.senocular.com/flash/tutorials/buttoncapturing/](http://www.senocular.com/flash/tutorials/buttoncapturing/)

which I thought might have the answer but I’m not advanced enough to follow it.

Any advice or direction will be much appreciated.

Scott
