 |
| Moving Movieclips using Keys with Acstionscript 3 |
| A tutorial showing you how to move a movieclip using the arrow keys with as3 |
 |
 |
 |
|
 |
|
| Step 1. |
| Following on from the tutorial to add a movieclip using as3, we will now write the code to make the MC (movieclip) move when the arrow keys are pressed. |
| |
|
|
Line 1 - 4
Line 5
|
 |
| Step 2. |
| |
|
|
Line 7 - 10
|
 |
| Step 3. |
| |
|
|
Line 12
Line 13
Line 14 - 16
Line 17 - 25
|
 |
| Step 4. |
| |
|
|
Line 32 - 50
|
 |
| Step 5. |
| |
|
|
Line 52
Line 53 - 58
Line 60 - 68 |
 |
| Step 6. |
| |
|
|
Line 68 - 68
Line 69
|
 |
|
|
|
|
|
 |