Flash framerate reliability
- by Tim Cooper
I am working in Flash and a few things have been brought to my attention. Below is some code I have some questions on:
addEventListener(Event.ENTER_FRAME, function(e:Event):void
{
if (KEY_RIGHT)
{
// Move character right
}
// Etc.
});
stage.addEventListener(KeyboardEvent.KEY_DOWN, function(e:KeyboardEvent):void
{
//…