Transparent background or alpha channel

Wondering how to accomplish a certain animation task? Ask here.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
JCook
Posts: 392
Joined: Wed Aug 04, 2004 1:28 pm
Location: Cape Cod, MA

Transparent background or alpha channel

Post 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
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Post by jahnocli »

That's the default.
You can't have everything. Where would you put it?
JCook
Posts: 392
Joined: Wed Aug 04, 2004 1:28 pm
Location: Cape Cod, MA

Post 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
User avatar
slowtiger
Posts: 6247
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post 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,
User avatar
jahnocli
Posts: 3471
Joined: Fri Oct 29, 2004 2:13 pm
Location: UK

Post by jahnocli »

Are you exporting vectors or bitmaps?
You can't have everything. Where would you put it?
JCook
Posts: 392
Joined: Wed Aug 04, 2004 1:28 pm
Location: Cape Cod, MA

Post 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
User avatar
slowtiger
Posts: 6247
Joined: Thu Feb 16, 2006 6:53 pm
Location: Berlin, Germany
Contact:

Post 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.
JCook
Posts: 392
Joined: Wed Aug 04, 2004 1:28 pm
Location: Cape Cod, MA

Post 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
Post Reply