0
this.onEnterFrame = function()
{
if(Key.isDown(Key.RIGHT))
{
asdf._x += 10;
}else if (Key.isDown(Key.LEFT))
{
asdf._x -= 10;
}else if (Key.isDown(Key.UP))
{
asdf._y -= 10;
}else if (Key.isDown(Key.DOWN))
{
asdf._y += 10;
}
}
var i = 0;
this.onEnterFrame = function()
{
else if (Key.isDown(Key.DOWN))
{
asdf._y += 5;
}
if (Key.isDown(Key.SPACE))
{
i++;
_root.attachMovie("Bullet", "Bullet" + i,_root.getNextHighestDepth());
_root["Bullet" + i]._x = asdf._x + 3;
_root["Bullet" + i]._y = asdf._y
}
}
실행하려고 할 때마다 "Scene = Scene 1, Layer = 레이어 1, 프레임 = 1, Line 21 'else' 당신은이 if
해당하지 않고 else
과 기능을 시작할 수 없습니다액션 스크립트 2에서 "일치하지 않으면 else가 발생했습니다"
onEnterFrame 함수의 첫 번째 줄에 if가없는 경우 – Maerlyn