I'm trying to stop a audio when the keyboard is pressed. I have the 
following script. mousedown works but keydown action (I have keyboard 
navigation script) does not happen until the audio is finished. What is 
wrong with the script.


on enterframe
   playSoundFile 1, (the moviePath & "Media\" & "whatever.swa")
   repeat while soundBusy(1)
       if the mouseDown or the keydown then exit
   end repeat
end

on keyDown
  -- navigation script
   case (the keyCode) of
     124 : go marker (1)
     123 : go marker (-1)
     126 : go "0"
     53: quit
   end case
end

Thanks a lot for the help,


Changhsu Liu


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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