Highlighted

Button wont work

Community Beginner ,
May 17, 2019

Copy link to clipboard

Copied

Hi Guys!

I have a strange problem with AS3 in Animate.

In scene 1 is a button with the following code:

welcome.addEventListener(MouseEvent.CLICK, clickHandler_start);  function clickHandler_start(event: MouseEvent): void {  gotoAndStop(2)  }

welcome.addEventListener(MouseEvent.CLICK, clickHandler_start); 

function clickHandler_start(event: MouseEvent): void

gotoAndStop(2) 

}

However, this code works only if in scene 2 the same button is added to the stage. if the button (in scene 2) is removed, the code will not work

Fla to download and test: http://app-developing.eu/tfzfleitfaden/leitfaden.fla

Correct answer by Da_Painter | Community Beginner

After reinstall, fla is working

TOPICS
ActionScript

Views

85

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

Button wont work

Community Beginner ,
May 17, 2019

Copy link to clipboard

Copied

Hi Guys!

I have a strange problem with AS3 in Animate.

In scene 1 is a button with the following code:

welcome.addEventListener(MouseEvent.CLICK, clickHandler_start);  function clickHandler_start(event: MouseEvent): void {  gotoAndStop(2)  }

welcome.addEventListener(MouseEvent.CLICK, clickHandler_start); 

function clickHandler_start(event: MouseEvent): void

gotoAndStop(2) 

}

However, this code works only if in scene 2 the same button is added to the stage. if the button (in scene 2) is removed, the code will not work

Fla to download and test: http://app-developing.eu/tfzfleitfaden/leitfaden.fla

Correct answer by Da_Painter | Community Beginner

After reinstall, fla is working

TOPICS
ActionScript

Views

86

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
May 17, 2019 0
Community Beginner ,
May 17, 2019

Copy link to clipboard

Copied

After reinstall, fla is working

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...
May 17, 2019 0