Link to home
Start Free TrialLog in
Avatar of 420_dragon
420_dragon

asked on

AS3 proper use of getBounds()

Hi,

I have a simple MC on the stage. I want to create a simple conditional statement that would check if the mouse is on the rectangle using get bounds. something like

if(mouseX > mc.getbounds(min,max) || mouseY > mc.getbounds(min,max))
{
do something
}
else
{
do nothing
}

Basicaly...how do I properly use the getBounds in a situation like this? Thanks.
ASKER CERTIFIED SOLUTION
Avatar of section25
section25

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 420_dragon
420_dragon

ASKER

hey,

that may just do the trick ...let m etry it out and if it works I'll give you the points.

THanks again for your help.