Try using the inside function. For example:
if the mouseLoc.inside(rect(20,20,60,60)) then
alert "inside"
end if
But this will result in a problem. If you go to another frame, this effect will still linger on.
So currently I specify another condition to make sure that the effect is removed when it goes to another frame.
But is there any other way?
Any comments are welcome. Thanks.