Skip navigation
Currently Being Moderated

Use KeyboardEvent in AE CS3

Mar 19, 2012 2:15 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

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points