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

Button wont work

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

TOPICS
ActionScript

Views

203

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

After reinstall, fla is working

Votes

Translate

Translate
Community Beginner ,
May 17, 2019 May 17, 2019

Copy link to clipboard

Copied

LATEST

After reinstall, fla is working

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