var m1:Object = new Object();
m1.onKeyDown = function() {
if (Key.isDown(37)) {
mc1._x -= 10;
}
if (Key.isDown(39)) {
mc1._x += 10;
}
if (Key.isDown(38)) {
mc1._y -= 10;
}
if (Key.isDown(40)) {
mc1._y += 10;
}
if (mc1.hitTest(n1)) {
unloadMovie(n1);
}
if (mc1.hitTest(n2)) {
unloadMovie(n2);
}
};
Key.addListener(m1);
ไม่มีความคิดเห็น:
แสดงความคิดเห็น