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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.