Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Double clicking
From: John Dowdell
Date: Wed, 29 Mar 2000 22:41:25 +0100

At 8:40 AM 3/29/0, Catherine Owen wrote:
> I sure this was posted on this list before, I want to have an
> alert appear if the user clicks more than once. Can any one help?

Sorry, but there isn't an explicit doubleclick event in Flash itself...
buttons have press, release, release-outside, rollover, rollout, dragover
and dragout events, but not an automatic doubleclick, sorry.

If you're comfortable with scripting you can simulate this by assigning the
getTimer value to a variable. Here's an example in pseudo-script:

on click
if (theVariable - theTimer) < someValue then
-- it was close enough to be a doubleclick
else set theVariable to theTimer
end click

I don't think we have a technote with a fully-commented version yet, and
I'm not sure whether any of the other contributors to the culture have also
written up examples... I'm trying to catch up after the FlashForward
conference now, but I'll try to get a fully-worked example on this soon. In
the meantime, I hope the above pointer might be of some use in your work.

jd






John Dowdell, Macromedia Tech Support, San Francisco CA US
Search technotes: http://www.macromedia.com/support/search/
Offlist email risks capture by the spam filters. I may not see your
email if it's not on the list. Private one-on-one email options are
available via Priority Access: http://www.macromedia.com/support/



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Double clicking, christopher blair
  FLASH: Aquarium: "watery" effect to simu, p-h

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]