Within my program, users click on thumbnail icons to open audios. This creates puppet sprites and takes the play-head to a different frame where an audio begins playing automatically and a transcript, play, rewind, pause, ffwd and "Close Audio" buttons are available. On clicking the "Close Audio" button, the puppet sprites are set to false and the play-head returns to the frame it had been at when the thumbnail was originally clicked (gReturnFrame). The problem is that one of the thumbnail icons is positioned in roughly the same place as the "Close Audio" button (neither can be moved), and if the user happens to double-click the "Close Audio" button, the second click automatically registers on the thumbnail icon at the return frame and that audio starts playing.

I thought I could use "the lastClick" to check if less than (say) half a second has passed since the last click, but this does not seem to work. I checked what was happening by attaching the code "put the lastClick" to the thumbnails icon, but even if I wait more than 10 seconds between clicks, the message window invariably gives me a spurious value for "the lastClick" which never seems to exceed about 12, although according to Director Help, after a 10 second delay, this should return a value of at least 600. I therefore cannot use this to test the elapsed time between clicks.

Is there an easy way to prevent the second click from registering on the thumbnail icon?

Alan

Alan Neilsen
Multimedia Developer
Learning Services
Deakin University
Geelong Waterfront Campus
Geelong, Victoria 3217
Telephone : +61 03 5227 8155
E-mail: [EMAIL PROTECTED]

Please feel free to visit us at -
Learning Services: http://www.deakin.edu.au/learningservices
Exemplars of our work: http://cowan.ls.deakin.edu.au/exemplars/

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to