A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Mouse double click and right click ?

  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    8
    Is it possible to assing this action ???
    Thanks

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    hi Sasaka,
    For double-click yes, it's done with the timer. If the user clicks 2 times under half a second the action will take place. here's an example from one of my movies where i use the double click:
    Code:
    on (release) {
    	if (Number(getTimer()-lastClick)<500) {
    		_root.w1.gotoAndPlay("w1open");
    	} else {
    		lastClick = getTimer();
    	})
    for the rightclick, sorry, i'm on a mac and we don't have these
    hope this helps
    gparis

  3. #3
    Junior Member
    Join Date
    Jun 2001
    Posts
    8
    Thanks a lot. It will help me.
    LOL for the right click on a Mac

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