세 프레임 있습니다. 첫 번째 프레임은 원본입니다. 마커가 정답 (목표는 말해야 함)에 도달하면 프레임 3으로 진행해야합니다. 대답이 틀린 경우 프레임 2로 가야합니다. 그러나 표시되는 프레임이 마커가 정답 인 경우 프레임 2가 아니라 프레임 3입니다. 왜 그렇게됩니까?오른쪽 프레임으로 이동하지 않습니다.
marker._x = 93.0;
marker._y = 62.0;
status.text = "ANSWER"
marker.onPress = function()
{
this.startDrag();
}
marker.onRelease = marker.onReleaseOutside = function()
{
this.stopDrag();
if(eval(this._droptarget)==A)
{
this._x = A._x;
this._y = A._y;
status.text = "CORRECT";
gotoAndPlay("3");
}
else if(eval(this._droptarget)==B)
{
this._x = B._x;
this._y = B._y;
status.text = "WRONG";
gotoAndPlay("2");
}
else if(eval(this._droptarget)==C)
{
this._x = C._x;
this._y = C._y;
status.text = "WRONG";
gotoAndPlay("2");
}
else if(eval(this._droptarget)==D)
{
this._x = D._x;
this._y = D._y;
status.text = "WRONG";
gotoAndPlay("2");
}
else
{
marker._x = 93.0;
marker._y = 62.0;
status.text = ""
}
}
분명히 AS3이 아닙니다. AS2로 다시 태그 지정. – scriptocalypse