버튼에 의한 무비 X축이동메뉴소스코드
onClipEvent (load) {
rate=0.2;
targetX=0;
}
onClipEvent (enterFrame) {
dist=targetX-this._x;
if (Math.abs(dist)>0.01) {
this._x +=dist*rate;
} else {
this._x=targetX;
}
}