This content has been marked as final. Show 6 replies
i don't know what keynote does but swf files loaded into another swf normally have a transparent background.
but if it doesn't load with a clear background, you can use the bitmapdata class to change all pixels with a given color to transparent, but this may not give the effect you want.
Thanks for the quick response! The keynote swfs have a white background by default (unless I change it to something else in Keynote).
Can you use the bitmapdata class on an animated swf to change pixels? (I thought it would just work on a static pic)
yes, all swfs have a background color. but when they're loaded into another swf their background is made transparent. have you tested your keynote swf to see what it looks like loaded into another swf?
I think Keynote 3 includes a transparent palette, you can try that.
Yes - I've loaded a Keynote swf into another swf, and it carries with it the background from Keynote. Even if I set the background in Keynote to a fill of none, it still exports a swf with a white background.
Would the bitmapdata class work on an animation, or does it only work on a picture?
Apparently I can export a transparent Quicktime movie from Keynote though - although I haven't been able to bring that transparency into an FLV in Flash yet either (but I'm still working on it).
you could make the background transparent of a loaded swf transparent with the bitmapdata class but that would cause significant performance issues for all but the smallest loaded swfs.