Welcome to WebmasterWorld Guest from 54.226.194.180

Forum Moderators: open

Message Too Old, No Replies

[as2] Keycode issue with play and pause toggle, please help

     

petra825

5:16 am on Mar 8, 2009 (gmt 0)

5+ Year Member



Hi,

I am trying to use the letter x to stop and play my movie, I got it to sucessfully stop but I am having trouble restarting it once it is stopped, can anyone please help me. this is what i have so far:


keyListener = new Object();
keyListener.onKeyDown = function() {
var keyCode = Key.getCode();

if (keyCode == 88) {
_root.stop();
}

};
Key.addListener(keyListener);
stop();

 

Featured Threads

Hot Threads This Week

Hot Threads This Month