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]