PDA

View Full Version : onKeyDown works weird on IE


hayored
12-21-2002, 05:35 AM
Hi,
I created a movie, where pressing down a key starts some action.
It is working OK in Flash, but when I try to run from IE, it works only after I click with mouse on the screen.
Here is the code for my listener:

myListener = new Object();
Key.addListener(myListener);
myListener.onKeyDown = function() {
shoot = true;
};

Any idea why it is working OK in Flash MX, but not with IE?

Thanks,

YH

pom
12-22-2002, 02:18 AM
You need to set the focus at the beginning of the movie. Do a search, there are threads about this.

pom :)