Jump to content
Search Community

mouseDown vs mouseClick

Mostafa test
Moderator Tag

Recommended Posts

i have draggable background it has mouseDown event , and i have movieClips inside the background Movie and they have mouseClick event .

 

the problem is mouseDown force and ignore the mouse Click event

 

what shall i do to solve this problem ?

Link to comment
Share on other sites

Unfortunately we really need to keep this forum focused on GreenSock-specific questions (it's very time-consuming as it is, even though we'd love to help answer all questions). You may need to look into bubbling events or something like that. I hope that gives you a nudge in the right direction at least. 

 

If anyone else wants to chime in, please feel free. 

Link to comment
Share on other sites

YES YES YES , i solve it ...

i reach to this algorithm to solve the problem .. 

i use the distance factor :)

 

 

var point1:Point = new Point(mouseX,mouseY);
for(var i:int = 0 ; i < mcBg.numChildren-1;i++){
var point2:Point = mcBg.localToGlobal(new Point(mcBg.getChildAt(i).x , mcBg.getChildAt(i).y));
var distance:Number =  getDistanceTwoPoints(point1.x , point2.x,point1.y,point2.y);
if(distance <= 50){
disableBitMapMode();
return false;
}
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...