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

linking scene

New Here ,
May 04, 2015 May 04, 2015

Copy link to clipboard

Copied

how i can linking scene??

when i use this action

(

button_7.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_4);

function fl_ClickToGoToScene_4(event:MouseEvent):void

{

    MovieClip(this.root).gotoAndPlay(1, "show"); )

an error appear :

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

    at flash.display::MovieClip/gotoAndPlay()

    at first02_main_fla::MainTimeline/fl_ClickToGoToScene_4()

what should i do??

TOPICS
ActionScript

Views

291

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 , May 04, 2015 May 04, 2015

click the keyframe (to select it) and in the properties panel, in the name field, type a frame name (eg, frame1_show).

in your code, use:

gotoAndPlay('frame1_show');

Votes

Translate

Translate
Community Expert ,
May 04, 2015 May 04, 2015

Copy link to clipboard

Copied

create a scene named "show".

or don't use scenes for navigation.  they are unnecessary.  you can always name keyframes and used them.

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 ,
May 04, 2015 May 04, 2015

Copy link to clipboard

Copied

i already have the scene called "show"

how i can use frames instead of scene???

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 ,
May 04, 2015 May 04, 2015

Copy link to clipboard

Copied

click the keyframe (to select it) and in the properties panel, in the name field, type a frame name (eg, frame1_show).

in your code, use:

gotoAndPlay('frame1_show');

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 ,
May 04, 2015 May 04, 2015

Copy link to clipboard

Copied

thanx alot ... i'll try it

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 ,
May 04, 2015 May 04, 2015

Copy link to clipboard

Copied

LATEST

you're welcome.

(p.s when using the adobe forums, please mark helpful/correct responses, if there are any.)

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