Copy link to clipboard
Copied
I turned the Advanced Layers Off and I checked, rewrote and tested my code and checked the buttons and checked the scene names, but everything was correct. The problem is the scenes still show up as "Scene not Found"
stop();
room_btn.addEventListener(MouseEvent.CLICK, roomclick);
function roomclick (event:MouseEvent):void
{
gotoAndPlay(1, "Room");
}
dream2_btn.addEventListener(MouseEvent.CLICK, dreamclick2);
function deamclick2 (event:MouseEvent):void
{
gotoAndPlay(2, "Dream");
}
stop();
intro_btn.addEventListener(MouseEvent.CLICK, introclick);
function introclick (event:MouseEvent):void
{
gotoAndPlay (0, "Intro");
}
dream_btn.addEventListener(MouseEvent.CLICK, dreamclick);
function dreamclick (event:MouseEvent):void
{
gotoAndPlay(1, "Dream");
}
Copy link to clipboard
Copied
all your code needs to be on the main timeline and there's no frame 0 in as3.