課題F002/2種類のボタンを押す度に指定されて位置に移動させる

タイムラインに記述する場合

this.box_mc.onEnterFrame = function() {
box_mc._rotation += 20;
}

this.btn01.onRelease = function() {
box_mc._x = 150;
box_mc._y = 100;
}

this.btn02.onRelease = function() {
box_mc._x = 250;
box_mc._y = 200;
}

オブジェクトに記述する場合

まわる四角(box_mc)
onClipEvent (enterFrame) {
_rotation += 20;
}


ボタン1(btn01)
on (release) {
this.box_mc._x = 150;
this.box_mc._y = 100;
}


ボタン2(btn02)
on (release) {
this.box_mc._x = 250;
this.box_mc._y = 200;
}