[Laszlo-dev] [BULK] Re: Transparent Background

Lucas Lain lucas.lain at gmail.com
Tue Jan 5 12:44:42 PST 2010


MacOS X - Firefox (I also tried with safari)

OpenLaszlo Server 4.6.1

Here are the two snapshots



On Tue, Jan 5, 2010 at 6:14 PM, Max Carlson <max at openlaszlo.org> wrote:
> Can you try this test in your browser?  It should run with transparency
> properly:
> examples/extensions/html-swf.jsp
>
> If not, what browser/OS combination are you using?
>
> On 1/4/10 4:57 PM, Lucas Lain wrote:
>>
>> Thank you Max but I had no luck.
>>
>> Here is what I wrote in the console.
>>
>> lzx>  canvas.bgcolor
>> 16777215
>>
>> I think the value is set. Does anyone get the transparent canvas to work?
>>
>> Thank you.
>>
>> Lucas.
>>
>>
>> On Thu, Dec 31, 2009 at 7:51 PM, Max Carlson<max at openlaszlo.org>  wrote:
>>>
>>> I'd recommend passing the wmode as an argument to lz.embed.swf(), e.g.
>>> lz.embed.swf({url: '/static/r.swf', ..., wmode: 'transparent'});
>>>
>>> Let me know how this works for you!
>>>
>>> On 12/28/09 11:54 AM, Lucas Lain wrote:
>>>>
>>>> Hello everybody,
>>>>
>>>> I looked everywhere on the web for making canvas area transparent and
>>>> found several posts about this. Every person solved the problem with
>>>> param tag and the wmode attribute, but I cannot make it work :(. I
>>>> compiled the SWF with LZC (line: "lzc recorder.lzx --runtime=swf9 -o
>>>> ../static/r.swf") Here is my html code:
>>>>
>>>>         <div id="player">
>>>>             <object
>>>>
>>>>
>>>> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0">
>>>>             <param name="wmode" value="transparent">
>>>>             <embed type="application/x-shockwave-flash"
>>>>                    wmode="transparent"
>>>>                    src="/static/r.swf"
>>>>
>>>>
>>>>
>>>> pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"/>
>>>>             </object>
>>>>         </div>
>>>>
>>>> lzx code:
>>>>
>>>> <canvas proxied="false" debug="true">
>>>>
>>>>     <attribute name="profile" value="'lucaslain'"/>
>>>>
>>>>     <videoview name="vid" id="vid" url="${canvas.profile}" type="rtmp">
>>>>         <microphone capturing="true"/>
>>>>     </videoview>
>>>>
>>>> </canvas>
>>>>
>>>>
>>>> Any ideas? I see the white background in safari and firefox :(
>>>>
>>>> Thank you in advance,
>>>>
>>>
>>> --
>>> Regards,
>>> Max Carlson
>>> OpenLaszlo.org
>>>
>>
>>
>>
>
> --
> Regards,
> Max Carlson
> OpenLaszlo.org
>



-- 
Lucas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 1.png
Type: image/png
Size: 264141 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20100105/6e12dfc3/Picture1-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Picture 2.png
Type: image/png
Size: 344494 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20100105/6e12dfc3/Picture2-0001.png


More information about the Laszlo-dev mailing list