Skip to main content
Participant
May 23, 2021
Question

Advanced Layers are Off scenes exist but scenes are not found

  • May 23, 2021
  • 1 reply
  • 168 views

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");
}

    This topic has been closed for replies.

    1 reply

    kglad
    Community Expert
    Community Expert
    May 24, 2021

    all your code needs to be on the main timeline and there's no frame 0 in as3.