Highlighted

problem with connected scenes

Community Beginner ,
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

165

Likes

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

problem with connected scenes

Community Beginner ,
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

166

Likes

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
Dec 22, 2018 0
kglad LATEST
Adobe Community Professional ,
Dec 22, 2018

Copy link to clipboard

Copied

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

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

Likes

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
Reply
Loading...
Dec 22, 2018 0