Web Design Forum: Is there Actionscript for double-clicks, like onClick for single-clicks? - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Is there Actionscript for double-clicks, like onClick for single-clicks? Rate Topic: -----

#1 User is offline   semiotically 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 32
  • Joined: 28-May 09
  • Reputation: 0
  • Experience:Nothing
  • Area of Expertise:Designer

Posted 02 March 2010 - 02:57 AM

simply saying yes isn't amusing ¬¬

ondoubleclick / ondblclick is javascript..?
0

#2 User is offline   semiotically 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 32
  • Joined: 28-May 09
  • Reputation: 0
  • Experience:Nothing
  • Area of Expertise:Designer

Posted 02 March 2010 - 04:15 AM

Can you use this?

on(release){
    if(lastclick - (lastclick=getTimer()) + 500 > 0){
            //do doubleclick action
           trace("double");
    } else {
            //do singleclick action
           trace("single");
    }
}


how would you place a function into this (& leave the single empty/ non-active), I'm trying to replicate this single-click action to a double-click:

myBook.onClick = function( pageNumber, pageClip, isCornerClick ){
	if( !isCornerClick ){
		bookZoom();
	}
}


Thanks thanks thanks.
0

#3 User is offline   semiotically 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 32
  • Joined: 28-May 09
  • Reputation: 0
  • Experience:Nothing
  • Area of Expertise:Designer

Posted 04 March 2010 - 10:42 PM

I tried things:

http://greenethumb.c...ck-event-in-as2

maybe if you've more experience - will use AS3 in future.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users