Can I change html bgcolor on html 5 Canvas documents published by Animate 2020?

Explorer ,
Oct 26, 2020

Copy link to clipboard

Copied

Anyone help me please..

 

In html 5 (Canvas) documents of Animate 2020, although I set up black (or red) on stage color, I see white on html background color.

Html bgcolor is always white.

Can I change html bgcolor on html 5 Canvas document published by Animate 2020?

Is there any way I can match stage color with html background color?

Anyone help me please!

Views

68

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Oct 26, 2020

Copy link to clipboard

Copied

Of course you can. It's HTML. You can do literally anything to it that you can with any other HTML document.

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Oct 26, 2020

Copy link to clipboard

Copied

Hi.

 

There is.

 

In the beginning of your code, write this down:

document.body.style.backgroundColor = lib.properties.color;

 

Please let us know if you have any further questions.

 

Regards,

JC

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
buksori AUTHOR
Explorer ,
Oct 26, 2020

Copy link to clipboard

Copied

Thank you for your help.

 

Is there any other way I can operate in Animate 2020 to change html bgcolor?

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
buksori AUTHOR LATEST
Explorer ,
Oct 27, 2020

Copy link to clipboard

Copied

I am sorry that I don't know how to use the above script you gave me..

Let me know how to use the script in specific.. where to insert the script and what is variables..

 

Thank you

Likes

Translate

Translate

Report

Report
Reply
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more