Highlighted

Button wont work

Community Beginner ,
May 17, 2019

Copy link to clipboard

Copied

Hi Guys!

I have a strange problem. In scene 1 is a button with the following code:

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

Views

96

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. In scene 1 is a button with the following code:

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

Views

97

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
Adobe Community Professional ,
May 18, 2019

Copy link to clipboard

Copied

Glad you were able to solve this on your own.

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 18, 2019 0