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

Simple button won't work

New Here ,
Feb 14, 2019 Feb 14, 2019

Hi

I'm new to Animate

I'm trying to start simple

A two frame timeline with a button_2 on frame one that is suppose to send the viewer to frame 2.

Can anyone tell me why this isn't working?

thanks

simple-actionscript.jpg

634
Translate
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

LEGEND , Feb 15, 2019 Feb 15, 2019
Translate
Community Expert ,
Feb 14, 2019 Feb 14, 2019

Hi.

Everything seems correct to me.

Are you using an AS3 or an HTML5 Canvas document?

Can you please check this?

Regards,

JC

Translate
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 Beginner ,
Feb 15, 2019 Feb 15, 2019

Thanks very much for the help JC

The original document was AS3.

I tried re-creating it starting off as HTML5 and got similar result.

I did get an output warning in the HTML5 version, It is this:

WARNINGS:

** 6 Bitmaps packed successfully into 1 spritesheet(s).

Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (4)

Content with both Bitmaps and Buttons may generate local security errors in some browsers if run from the local file system.

Thanks again

Steve

Translate
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
Engaged ,
Feb 15, 2019 Feb 15, 2019

Hi,

remember frames in HTML5 Canvas start at 0. So if it was frame 1 on AS3 then it will be frame 0 in HTML5.

Also, some browsers like Chrome and Firefox have security that might stop your buttons working. Can you test from a server?

This is really all what the Warning was saying.

Cheers.

Translate
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 Beginner ,
Feb 20, 2019 Feb 20, 2019
LATEST

Thanks a lot Gory

That makes sense now. My buttons are working and my faith in humanity is restored!

Translate
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 ,
Feb 15, 2019 Feb 15, 2019

Do you get any error in the console?

Translate
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 ,
Feb 15, 2019 Feb 15, 2019
Translate
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 Beginner ,
Feb 20, 2019 Feb 20, 2019

You made a file for me? Thank you so much. I figured it out and my buttons are working now! You're the best!

Translate
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