package
{
import flash.ui.Keyboard;
public function onKeyPressed(evt:KeyboardEvent):void
{
switch (evt.keyCode)
{
case Keyboard.SPACE:
jump();
}
I got a “Package is unexpected” error from the above codes. I was wondering if anyone could help me. I don’t know how to solve this.
Thanks.