Use KeyboardEvent in AE CS3

Find out why the . goes before the /

Moderator: Paul Tuersley

Post Reply
lougris
Posts: 12
Joined: March 12th, 2012, 5:29 am

Hello,


I've tried to do this on AE CS3 :


editText.addEventListener("keydown", keyboardCapt, false);


function keyboardCapt(e) {

alert("You hit : " + e.keyName);

}



But it doesn't work, do you know the reason ?

Are KeyboardEvents yet implemented in AE CS3?


I've seen on the guide an example with a notify("onDraw") :


button.onDraw = drawButton;

button.addEventListener (’mouseover’, btnMouseEventHandler, false);


function btnMouseEventHandler (event) {

try {

event.target.notify("onDraw");

}

catch (e) {

}

}


function drawButton (drawingState) {

...

}


Thanks for advance,


Frédéric
Post Reply