Basic Movment in Flash
139 views · Published 19 October 2008 · 4:19 · Indexed 20 September 2026
Channel: macheads101 · 2008 · Science & Technology
Here is the code:
onClipEvent(enterFrame) {
if(Key.isDown(Key.LEFT)) {
_x-=10
}
if(Key.isDown(Key.RIGHT)) {
_x+=10
}
if(Key.isDown(Key.UP)) {
_y-=10
}
if(Key.isDown(Key.DOWN)) {
_y+=10
}
}