Welcome to WebmasterWorld Guest from 54.226.110.143

Forum Moderators: open

Message Too Old, No Replies

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

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

New User

5+ Year Member

joined:Mar 8, 2009
posts: 1
votes: 0


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();

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members