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

I can't jump from scene to scene using a button

New Here ,
Apr 26, 2018 Apr 26, 2018

I am using adobe flash professional CS6 and creating an ActionScript 3.0 file.

The error is that it says the system cannot find another scene which it is really existing...

I've tried remaking the scene but the system still doesn't work.

I've tried to use "Play next scene" also but it just simply replayed the same scene.

more_btn is the instant name of the "MORE HERE" button.

I will very appreciate if anyone can answer this question

TOPICS
ActionScript
1.5K
Translate
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 , Apr 26, 2018 Apr 26, 2018

Hi.

Which shortcut and/or menu command are you using to test your app?

Make sure you're not using Test Scene (Ctrl + Alt + Enter), because this command only compiles the current scene.

Translate
Community Expert ,
Apr 26, 2018 Apr 26, 2018

Hi.

Which shortcut and/or menu command are you using to test your app?

Make sure you're not using Test Scene (Ctrl + Alt + Enter), because this command only compiles the current scene.

Translate
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 ,
Apr 26, 2018 Apr 26, 2018

I don't know if that used to be the case, but for me either test movie or debug movie play the whole swf, and the mouse click works, regardless of whether I'm in the first or second scene at the time.

onyi, are you able to post a file online somewhere, so we can look for other things that might be going wrong?

Translate
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 ,
Apr 26, 2018 Apr 26, 2018

Thanks for your help too!!! So nice to meet you guys being so helpful!!

Translate
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 ,
Apr 26, 2018 Apr 26, 2018
LATEST

Another tip for you, in Publish Settings there is a Permit debugging option. If you check that you can get more information. In your little test it's not so important, but when you have a lot of code it could help you to find the right line. Here's how my Output panel looked:

ArgumentError: Error #2108: Scene Indi was not found.

  at flash.display::MovieClip/gotoAndPlay()

  at Untitled_1_Scene1_fla::MainTimeline/goindi()[Untitled_1_Scene1_fla.MainTimeline::frame1:7]

That "frame1:7" tells me which frame script, and which line, to look for the error. As I said, not so important in your example, but handy to know about.

Here's the Publish Settings option:

Screen Shot 2018-04-26 at 8.49.08 PM.png

Translate
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 ,
Apr 26, 2018 Apr 26, 2018

Forget most of what I said! JC meant the shortcut for Test Scene. I was just doing the Test Movie ones.

Translate
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 ,
Apr 26, 2018 Apr 26, 2018

I have just realized how stupid I was before!!!!!!!!!!!!!! Hahahahaa!!

Thanks for the great help!!!

Translate
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