A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Handling double clicks and mis-clicks in AS3

  1. #1
    Junior Member
    Join Date
    Nov 2008
    Posts
    7

    Handling double clicks and mis-clicks in AS3

    Hi

    I am making point n clicked based game. From time to time my moving objects stop and I assume this is happening due to me not handling double mouse clicks and mouse mis clicks. I would like to know how I can handle double click and mis clicks in AS3.

    Thanks

    P.S. To get a better understanding of what I mean, play my game at:

    http://freelancer.987mb.com/download/fla/Gool/Gool.html

    Its still under development.

  2. #2
    Señor Member Mavrisa's Avatar
    Join Date
    Oct 2005
    Location
    Canada
    Posts
    506
    I'm not sure what you mean by mis clicks... but the double click event listener is in the MouseEvent class.
    I don't think this is your problem however, although I don't have a solution for you. Maybe if you post your fla someone would be able to help you more.
    Good luck,
    Mavrisa
    Haikus are easy
    But sometimes they don't make sense
    Refrigerator

  3. #3
    Junior Member
    Join Date
    Nov 2008
    Posts
    7
    I have given the zip file. Inside the zip file is the .fla and .as file. Hopefully someone can help me out. Thanks
    Attached Files Attached Files

  4. #4
    Junior Member
    Join Date
    Nov 2008
    Posts
    23
    stage.addEventListener(MouseEvent.DOUBLE_CLICK,DC) ;
    function DC(evt:MouseEvent):void{
    trace("Double clicked the stage");
    }

    You can find the amount of miss clicks by the formula of:

    MissClicks=TotalClicks-SuccessfulClicks;

  5. #5
    Junior Member
    Join Date
    Nov 2008
    Posts
    7
    Thanks for your help. After having a greater look I have found the the gools stop moving without any click at all. Can someone help me out here. I really dont know why the gools just stop. Thanks

  6. #6
    Junior Member
    Join Date
    Nov 2008
    Posts
    23
    Can you post a bit of the movement code of the gools? I don't feel like downloading your source.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center