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

AS3 button method doesn't work in Html5 canvas

New Here ,
Feb 26, 2020 Feb 26, 2020

Copy link to clipboard

Copied

Dear Community,

 

I made a simple button animation in as3 file, but I don't know how to replace it in html 5 canvas?

 

In as3, it's so easy, I created a button symbol, and on the over state, made a movie clip symbol with an animation inside (simple color changing with Tint effect). When I publish it, it works fine, when the mouse is over the button, the animation runs (I attached the file).

 

But! In html5 canvas the same method doesn't work. The animation doesn't run, it's still, so it doesn't play the animation of the movie clip on the over state of the button.

 

Can you help how to make it in html 5 canvas?

 

Thank you so much!

TOPICS
Code , How to

Views

191

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 ,
Feb 26, 2020 Feb 26, 2020

Copy link to clipboard

Copied

Color and filter effects don't animate in Canvas documents. They're rendered once and cached. It has nothing to do with buttons.

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
New Here ,
Feb 27, 2020 Feb 27, 2020

Copy link to clipboard

Copied

LATEST

Thank you for your answer.

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