hi!
I want something that checks for which keys are pressed down and does something according to which keys…
I’ve got a choice between
keylisteners… orr… the onClipEvent …
Which should i use?
My keylistener works… but since it’s an object… I can’t seem to trace it’s _parent._name… even though I made that object INSide a movieclip…
KeyListener = new Object();
KeyListener.onKeyDown = function() {
trace(this._name);
};
Key.addListener(KeyListener);
Soo… Maybe “onClilpevent(keyDown){}” would be better…
These two would achieve the same effect… but would one be better than the other?
( The game will probably have lots of keys being pressed… like fighting combos…)
Thanks