I don't know how to fix that! Any help is appreciated, thanks!
Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
Your scene 1 is named "Cena 1". This should work:
function fl_ClickToGoToScene_50(event:MouseEvent😞void { MovieClip(this.root).gotoAndPlay(1, "Cena 1"); }
Copy link to clipboard
Copied
Ohh you're right, I didn't even pay attention to this! thank you!!