I think you gave your own answer. By default the background color of
the canvas is passed to the embedding code to set the background color
of the surrounding frame to match. Perhaps someone decided it would
be a good idea to have a single source for that color, rather than
duplicate it, so that it won't skew? Or perhaps so you could use CSS
to control it?
On 2008-04-13, at 00:48 EDT, Henry Minsky wrote:
The lzCanvas constructor function has this code in it
this.sprite = new LzSprite(this, true);
if (this.sprite.capabilities.readcanvassizefromsprite == true) {
if (this.sprite.width) {
args.width = this.sprite.width;
}
if (this.sprite.height) {
args.height = this.sprite.height;
}
if (this.sprite.bgcolor) {
args.bgcolor = this.sprite.bgcolor;
}
}
Which is saying that the sprite may have gotten a bgcolor set from
someplace
(making it non-null), and to set the canvas bgcolor
from that value.
But I do not understand under what conditions the sprite will know
the
bgcolor before the canvas does. Is that something
that sometimes comes set on the _root movieclip in Flash 8 and
earlier, due
to the <embed> tag in the browser, or compiled
into the application somehow?
--
Henry Minsky
Software Architect
[EMAIL PROTECTED]