Can someone explain how to set the browser fill when exporting as an HTML5 document? There used to be an option for this in the publish settings when it was still Flash.
The background color of the browser. I would like it to match the canvas background so that it will look consistent no matter the size of the window. It seems to default to white.
If you don't have anything selected and have are using the default selection tool, and open the properties, you should see the option to change the stage color.
Right, but when you export as an HTML doc, it will only retain the stage color within the dimensions of the stage. If the browser window is bigger than the stage dimensions, you end up with a lot of white area surrounding your content. There used to be an option to change this to either another solid color or a bitmap. This feature does not seem to exist in Animate CC. Either I'm missing something completely obvious or I would have to use another program like Muse or Dreamweaver, which defeats the purpose of using Animate as web design tool in the first place.
I have this question also. how do you change the color outside of the stage? I don't know what that area is called. The area beyond your document size...
It's the document's body.
There are several ways of changing its color. Some are described below.
document.body.style.backgroundColor = lib.properties.color;
document.body.style.backgroundColor = "green"; // any valid CSS color value
Both ways work but they will only change the background color when your content is fully loaded.
3 - If you wish to change the background color immediately, you can edit the publish template and change the color in there using CSS.
I hope this helps.
Thank you! This definitly helps. You're a ninja.