var mc_index:uint = 0;
function clickFn(e:MouseEvent):void
{
var mc_pre:MovieClip = this["main" + mc_index];
var mc:MovieClip = e.currentTarget as MovieClip;
mc_index = uint(mc.name.substr(4, 1));
if(mc.currentFrame == 1){
mc.gotoAndPlay(2);
}else if(mc.currentFrame == mc. totalFrames / 2){
mc.gotoAndPlay(71);
}
if(mc_pre.currentFrame == mc_pre. totalFrames / 2){
mc_pre.gotoAndPlay(71);
}
}
main0에서 main4까지의 5개 무비클립은 2프레임부터 70프레임까지의 트윈이 있구여
71프레임부터 80프레임까지의 트윈이 있습니다.
여기서 안돼는게여.ㅠㅠ
menu0을 클릭하면 main0이 2프레임으로 가서 액션이 돼어지고 70프레임에서 멈춤니다.
이상태에서 menu1을 클릭하면 main1은 2프레임으로 가고 전에 70프레임으로 가있는
main0은 71프레임으로 가겠금 하고싶은데 이게 잘안돼네여.ㅠ 몇일째 해보는데 안돼여.ㅠ
어떤부분을 고쳐야하는지.. 액션스크립트 3.0을 공부하고있는데 많이 모르는 초짜입니다.ㅠ
쉽게 설명해주시면 감사하겠습니다. ㅠㅠ 꾸벅
재가 설명을 잘 못했나여ㅠ
}else if(mc.currentFrame == mc. totalFrames / 2){
==>
}else if(mc.currentFrame > mc. totalFrames / 2){
아니면
}else if(mc.currentFrame == 70 ){