When I run the game, however, I don't get any output and instead get this error message:

C:\Users\MyName\Dropbox\Uni\DAT104\flash\com\Engine.as, Line 15 1046: Type was not found or was not a compile-time constant: Event.

Is there a library or something I need to import to get this to work? If it's not obvious, I want to run the gameLoop method of my Engine class (the documents class) on every new frame (the document is currently set to 30fps).

1 Answer
1

Flash is probably just complaining because it doesn't know where to find the Event class. If you add an import flash.events.Event; statement after the other import statements in your code, it should work.