on (keyPress("<Space>")) { gotoAndPlay(2); } onFrame (1) { stop(); } onFrame (2) { playSound("piano"); gotoAndStop(1); }