if (Key.isDown(Key.RIGHT)) {
this._x += 10;
} else if (Key.isDown(Key.LEFT)) {
this._x -= 10;
} else if (Key.isDown(Key.UP)) {
this._y -= 10;
} else if (Key.isDown(Key.DOWN)) {
this._y += 10;
}
if (this.hitTest(pic1)) {
unloadMovie(pic1);
}
if (this.hitTest(pic2)) {
unloadMovie(pic2);
}
};
ไม่มีความคิดเห็น:
แสดงความคิดเห็น