Page 1 of 1
Transparent background or alpha channel
Posted: Thu May 08, 2008 8:48 pm
by JCook
Is it possible to export a movie to swf with a transparent background, so it can be composited onto a background in Flash? For the first time I want to bring an animation into Flash, but it needs to not have a background.
thanks,
Jack
Posted: Thu May 08, 2008 9:18 pm
by jahnocli
That's the default.
Posted: Fri May 09, 2008 1:35 pm
by JCook
OK. But the problem is, when I import it into Flash I see the object (it's a whale), and I see the background, just like I should. But when I play it, the background goes away, and there's a white background. Maybe it's something I'm not doing right in Flash (I'm not a Flash expert by any means).
Jack
Posted: Fri May 09, 2008 1:56 pm
by slowtiger
It sounds like you have something in Flash that covers the BG. AS exports objects on transparent BG as default, so if you haven't put something under your whale, it should float freely in transparent space,
Posted: Fri May 09, 2008 2:41 pm
by jahnocli
Are you exporting vectors or bitmaps?
Posted: Fri May 09, 2008 4:34 pm
by JCook
slowtiger -
I can't find anything that's covering the background. There is one other layer in there, but it just has some static symbols on it.
jahnocli -
the animation I'm exporting is just one image layer. The image has a transparent background - if I change the AS background to red, it shows through around the image fine. Currently the background is white.
Jack
Posted: Fri May 09, 2008 5:22 pm
by slowtiger
Just tested it. Created a PNG with transparent parts in PS, imported it into AS, moved it with just the layer translation tool, export to SWF, into Flash - works nicely, all keyframes in Flash show the transparency.
Now I put the image layer into a bone layer, created some bones, moved one bone, exported to SWF, into Flash - nothing showed up at all. This was expected since you can't store information about a warped image in SWF (and the appendix of the manual says so).
I don't know what you're doing wrong, but it's obvious that at some point you're doing something.
Posted: Fri May 09, 2008 6:11 pm
by JCook
I seem to have solved the problem. Well, not solved exactly, because I still don't know what was causing it. But I made a new Flash file, put in the same background, and the layer with some symbols, and then a layer in which I imported the swf file from ASPro, and it works perfectly now. So, I think there is something in the first Flash file that wasn't right, but I have no idea what it was. A Flash problem, not an ASPro problem. I thank you all for you help on this. If I run into anymore problems I'll update you.
thanks,
Jack