|
Note: The
advantage of using this method is that you can
hold down multiple keys to create a combined effect.
e.g If you hold down the right arrow key and the
up arrow key the ball will move diagonaly to the
top right of the stage.
However one of the
main draw backs is that this method relies
on flash checking four conditions everytime
it enters a new frame. To make this process
more efficient it would be better to use
a key listener that sends a signal each time
a key is pressed. To learn more see [Using
all the arrow keys III (listener method)].
|