Buatlah sebuah movie
clip
Seleksi movie clip tsb, tekan f9 dan masukkan script berikut
onClipEvent
(enterFrame) {
if
(Key.isDown(Key.LEFT)) {
_x
-= 10;
}
if
(Key.isDown(Key.RIGHT)) {
_x
+= 10;
}
if
(Key.isDown(Key.DOWN)) {
_y += 10;
}
if(Key.isDown(Key.UP))
{
_y -= 10 ;
}
}
Tekan ctrl
+ enter atau bisa download file mentahnya disini
No comments:
Post a Comment