Mouse Listener and Frame Entry listeners both work correctly, just not keyboard ones =/
- Code: Select All Code
package Script
{
import flash.display.MovieClip;
import flash.events.*;
import flash.ui.Keyboard;
public class Main extends MovieClip
{
public function Main()
{
addEventListener(KeyboardEvent.KEY_DOWN,keyD);
addEventListener(KeyboardEvent.KEY_UP,keyU);
}
public function keyD(e:KeyboardEvent):void
{
trace("Debug");
}
public function keyU(e:KeyboardEvent):void
{
trace("Debug2");
}
}
}