[Laszlo-dev] Cant set the background color for the Canvas at runtime
Henry Minsky
henry.minsky at gmail.com
Wed Oct 29 15:45:03 PDT 2008
On Wed, Oct 29, 2008 at 1:39 PM, Bharath Kumar <bkumar at laszlosystems.com>wrote:
> Bharath Kumar wrote:
>
>> I have a couple of questions regarding background color.
>>
>>>
>>> 1. I recently found that I cant set the background color of the canvas at
>>> runtime (say oninit handler or from the debugger)
>>> Any suggestions why this is happening to me ?
>>
>>
Does this work for you?
canvas.setAttribute('bgcolor', 0xcccccc)
>
>>>
>>> 2. When we use embed-compress.js lib to embed a swf inside a HTML file,
>>> the background color specified in the main.lzx file for the canvas is not
>>> being used.
>>> The only way to specify the background color in this case is within
>>> the .js file. Is there any particular reason this behavior is as it is ?
>>>
>>> Thanks in advance for your reply.
>>>
>>> BK
>>>
>>>
>>>
>>
>>
>
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20081029/883bec16/attachment.html
More information about the Laszlo-dev
mailing list