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

HELP!!code problems

New Here ,
Jan 16, 2017 Jan 16, 2017

Copy link to clipboard

Copied

Hi! I've got a problem with the code of my game in animate and I hope you'll help me. I've got two frames in the timeline, one for the intro and the other one for the game. In the first one i've got a start button with the next code:

stop();

Start.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);

function fl_MouseClickHandler(event:MouseEvent):void

{

  nextFrame ();

}

and it works but if I put it the game doesn't work and if I remove it the game works. Do you know what's happening? I'll be very grateful if you answer it because I have to deliver it soon. Thanks in advance!!

Views

283

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

Advocate , Jan 17, 2017 Jan 17, 2017

You used ActinScript (Flash) code. If you convert it to Canvas project i doesn't work

Maybe your game code is in first frame? should be in second.

And if you use nextFrame action - it stops second frame.

Try using play() command and use stop in second frame.

Pawel

Votes

Translate

Translate
LEGEND ,
Jan 16, 2017 Jan 16, 2017

Copy link to clipboard

Copied

This is a non-technical support forum. I'd suggest asking over in the Animate forum or the coding forum.

Adobe Animate CC - Home

or

Coding Corner

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
Community Expert ,
Jan 16, 2017 Jan 16, 2017

Copy link to clipboard

Copied

is this an html5/canvas game?

if not, what's the problem you see when you include that code?

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
LEGEND ,
Jan 16, 2017 Jan 16, 2017

Copy link to clipboard

Copied

If it's a Canvas project, the first problem with that code would be that it's syntactically invalid JavaScript.

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
Advocate ,
Jan 17, 2017 Jan 17, 2017

Copy link to clipboard

Copied

LATEST

You used ActinScript (Flash) code. If you convert it to Canvas project i doesn't work

Maybe your game code is in first frame? should be in second.

And if you use nextFrame action - it stops second frame.

Try using play() command and use stop in second frame.

Pawel

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