Free ActionScript

Flash AS2 & AS3 Tutorials, Game Code, Effects, Source Files & Sample Downloads

Key Press detection & onEnterFrame in AS3

We’re going to make this little asteroid-clone space shooter for AS3 beginners.

It has the basic key press detection (listeners) and an AS3 version of onEnterFrame. We are however going to use classes and packages. Don’t be scared, it’s not complicated.

Read the rest of this entry »

Multiple Key Press Detection

Here is a simple fla example of multiple key press detection. It also shows you how to setup 4 way player movement using Arrow Keys and WASD.

Preview

Download Fla Sample

Download Fla Sample