PDA

View Full Version : How to make swf canvas transparent?


Kallen
02-15-2007, 08:50 AM
I've searched the forums and found discussions that danced around the topic, but don't quite answer the question.

I want to use a SWF as a view resource. The SWF consists of a png image with transparent portions. I want to maintain the transparency when used in OL.

I've tested it with the PNG directly, and the transparency works great. The downside is that the png file is quite a bit larger than the swf, so I'd rather use the swf if possible.

Sugggestions?

ylringwood
02-15-2007, 11:38 AM
hi, whilst I haven't tried it with Laszlo, it's possible to set the flash to transparent in the embed and object tags in the html. It's just whether Laszlo has to display it's own background or not which will defeat the purpose.
ylringwood.

Kallen
02-15-2007, 12:11 PM
Yeah, I saw the Adobe page that explains how to set the canvas as transparent, but that's from HTML. So, I don't see how that would work for an swf that's compiled within the lzx.

Kallen
02-15-2007, 10:54 PM
Here's what I figured out using the Flash IDE.

In the Publish settings, you go to the HTML tab. From there, you change Window Mode to Transparent Windowless.

It's an odd place for it, IMO, because it actually saves the SWF as transparent background -- nothing to do with the HTML.

But, it works!