Skip to main content
New Participant
December 8, 2019
Question

Animate Actionscript 3.0 scene not found, but scene exists

  • December 8, 2019
  • 1 reply
  • 1520 views

My project is an interactive ebook and I created different scenes for each page ( there are 1 to 19 scenes) I need to insert some ActionScript in order to be able to return to the homepage, and go to some other pages but when I click in the button in the scene, this error keeps showing up :

 

ArgumentError: Error #2108: Scene Scene 1 was not found.
at flash.display::MovieClip/gotoAndPlay()
at OPP_TCC_fla::MainTimeline/fl_ClickToGoToScene_50()

 

The code that I have written is :

 b_home.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_50);

function fl_ClickToGoToScene_50(event:MouseEvent😞void
{
    MovieClip(this.root).gotoAndPlay(1, "Scene 1");
}

 

 

 

I don't know how to fix that! Any help is appreciated, thanks!

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
December 8, 2019

Your scene 1 is named "Cena 1". This should work:

 

function fl_ClickToGoToScene_50(event:MouseEvent😞void
{
    MovieClip(this.root).gotoAndPlay(1, "Cena 1");
}
DoxysAuthor
New Participant
December 8, 2019

Ohh you're right, I didn't even pay attention to this! thank you!!