Jump to content


mouseDown vs mouseClick

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

i tried to stop propagation and Immediate propagation , but i don't solve it until NOW :(


thank you for trying to help me  .


i hope if any body give me solution ..

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){
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.