さて、私は完全な初心者です。キーボードボタンを使ってas3のシーンを進めたい。これが私のコードです、助けてくれませんか?
import flash.events.Event;
stage.addEventListener(MouseEvent.CLICK, startGame);
addEventListener(Event.ENTER_FRAME, asteroidMovement);
stage.addEventListener(KeyboardEvent.KEY_DOWN, startGameWithKeys);
stop();
function startGameWithKeys(e:KeyboardEvent){
removeEventListener(Event.ENTER_FRAME, asteroidMovement);
stage.removeEventListener(MouseEvent.CLICK, startGame);
gotoAndStop(1, "Scene 2");
}
function startGame(e:MouseEvent)
{
removeEventListener(Event.ENTER_FRAME, asteroidMovement);
stage.removeEventListener(MouseEvent.CLICK, startGame);
gotoAndStop(1, "Scene 2");
}