# If mouse over?

**URL:** https://forum.kirupa.com/t/if-mouse-over/142322
**Category:** Uncategorized
**Created:** [March 27, 2005, 10:17pm UTC](https://forum.kirupa.com/t/if-mouse-over/142322 "2005-03-27T22:17:29Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![VoS](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@VoS](https://forum.kirupa.com/u/VoS)
#### Post date: [March 27, 2005, 10:17pm UTC](https://forum.kirupa.com/t/if-mouse-over/142322/1 "2005-03-27T22:17:29Z")

</div>

is there an way to use if structure to check if a mouse is over a button?  
making a game in which i want to c if a user is withing an area with the mouse

[AS]  
if(c1.onRollOver){  
trace (wee);  
}  
[/AS]  
dident work =/

(i need it to be in an if statement so i can keep checking if its over)

//VoS
