我有三個幀。第一幀是原來的。當標記點擊正確答案(目標我應該說),它必須前進到框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