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

problem with connected scenes

Explorer ,
Dec 22, 2018 Dec 22, 2018

Copy link to clipboard

Copied

in the scene1 i make movieclip to go to the  scene2  .. and its work good :

stop();

Object(this).jj.addEventListener(MouseEvent.CLICK, nono);

function nono (e:MouseEvent):void{

  gotoAndStop(1,"s2");

  }

--------------------------------------------------------------------------------------------------

but in scene2 i make another  movieclip to return to the  scene1  .. i write same code but  its  dose not work why ? and the output become error?! what should i do

stop();

Object(this).gg.addEventListener(MouseEvent.CLICK, toto);

function toto (e:MouseEvent):void{

  gotoAndStop(1,"s1");

  }

the output massage:

TypeError: Error #1010: A term is undefined and has no properties.

  at Untitled_1_fla::MainTimeline/frame2()

  at flash.display::MovieClip/gotoAndStop()

  at Untitled_1_fla::MainTimeline/nono()

Views

232

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 22, 2018 Dec 22, 2018

Copy link to clipboard

Copied

LATEST

disable advanced layers (modify>document>untick 'use advanced layers').

info about advanced layers: https://helpx.adobe.com/animate/using/timeline-layers.html#advanced-layers

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