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

Navigating to different scenes using buttons in Animate 2024

Community Beginner ,
Dec 16, 2023 Dec 16, 2023

Copy link to clipboard

Copied

Hi all,

I developed a project in ActionScript2 in CS5. I have now opened my project in Animate to change into AS3. My project has 186 scenes which all opened correctly in AS2 however now, in AS3, an error appears stating the scenes are not found.  I have tried just about everything I can think of, over several days, to get the buttons to navigate to their proper scenes, but still the error appears. Any help would be very much appreciated. Thank you. Cheers Frederick

 

TOPICS
ActionScript

Views

316

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

correct answers 1 Correct answer

Community Expert , Dec 16, 2023 Dec 16, 2023

Thanks for the feedback.

 

Ctrl + Alt + Enter is the shortcut for testing the current scene only. It means the other scenes aren't published.

 

You should use Ctrl + Enter only to test the whole movie.

Votes

Translate

Translate
Community Expert ,
Dec 16, 2023 Dec 16, 2023

Copy link to clipboard

Copied

Hi.

 

Can you see the scenes using the Scene panel?

 

Which code are you using?

 

And what command are you using to test?

 

Please let us know.

 

Regards,

JC

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
Community Beginner ,
Dec 16, 2023 Dec 16, 2023

Copy link to clipboard

Copied

Hi Joao,

Thank you so much for your reply.

I have made up a test movie with two scenes to work out the code to go from one scene to the other using a button in each scene.

Yes, both scenes appear in the scene panel.

This is the code I'm using:

 

button1_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtScene);
function fl_ClickToGoToAndStopAtScene(event:MouseEvent):void
{
gotoAndStop(1,"Scene2");
}

 

I'm using Ctrl + Alt + Enter to test.

 

Thank you,

Regards,

FS

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
Community Beginner ,
Dec 16, 2023 Dec 16, 2023

Copy link to clipboard

Copied

I mentioned I built my project using AS2. I made a mistake there, it was actually in AS1.

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
Community Expert ,
Dec 16, 2023 Dec 16, 2023

Copy link to clipboard

Copied

Thanks for the feedback.

 

Ctrl + Alt + Enter is the shortcut for testing the current scene only. It means the other scenes aren't published.

 

You should use Ctrl + Enter only to test the whole movie.

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
Community Beginner ,
Dec 16, 2023 Dec 16, 2023

Copy link to clipboard

Copied

Hi Joao,

Thank you so much. Your instructions have saved my sanity. Wonderful. Now I can move on.

Cheers

FS

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
Community Expert ,
Dec 18, 2023 Dec 18, 2023

Copy link to clipboard

Copied

LATEST

Great! You're welcome.

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
Community Expert ,
Dec 16, 2023 Dec 16, 2023

Copy link to clipboard

Copied

also, copy and paste here a screenshot of the error message.

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
Community Beginner ,
Dec 16, 2023 Dec 16, 2023

Copy link to clipboard

Copied

ArgumentError: Error #2108: Scene Scene2 was not found.
at flash.display::MovieClip/gotoAndStop()
at SceneButtonChange_Scene1_fla::MainTimeline/fl_ClickToGoToAndStopAtScene()

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
Community Expert ,
Dec 16, 2023 Dec 16, 2023

Copy link to clipboard

Copied

copy and paste here a screenshot of your scenes panel.

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
Community Beginner ,
Dec 16, 2023 Dec 16, 2023

Copy link to clipboard

Copied

Sorry I clicked correct answer by mistake

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
Community Expert ,
Dec 16, 2023 Dec 16, 2023

Copy link to clipboard

Copied

np. copy/paste

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