# Start MC with mouse position

**URL:** https://forum.kirupa.com/t/start-mc-with-mouse-position/52683
**Category:** flash
**Created:** [May 26, 2004, 1:06pm UTC](https://forum.kirupa.com/t/start-mc-with-mouse-position/52683 "2004-05-26T13:06:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mhunki](https://avatars.discourse-cdn.com/v4/letter/m/b5e925/32.png) [@mhunki](https://forum.kirupa.com/u/mhunki)
#### Post date: [May 26, 2004, 1:06pm UTC](https://forum.kirupa.com/t/start-mc-with-mouse-position/52683/1 "2004-05-26T13:06:53Z")

</div>

I’m trying to make a movie clip play when the mouse is in a certain position on the screen without using invisible buttons, coding this myself so far I’ve got

\_root.top = 319  
\_root.bottom = 445  
yval = \_root.\_ymouse;  
if (\_root.\_ymouse \> \_root.top) {  
\_root.flowers.play();  
} else {  
\_root.flowers.stop();  
}

doesn’t seem to work right.

Any ideas?
