• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Animate Actionscript 3.0 scene not found, but scene exists

New Here ,
Dec 07, 2019 Dec 07, 2019

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

 

 scenes1.jpg

Scenes.jpg

 

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

TOPICS
ActionScript , Code , Error , How to

Views

1.2K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 07, 2019 Dec 07, 2019

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 07, 2019 Dec 07, 2019

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines