Yes, I get transparency with that syntax... but not with your PNG.
Opening your PNG in Photoshop also doesn't yield any transparency. So
I am confused on how you're getting the transparency at all (Your
sample appears as described- one opaque, one transparent).

Ben


--- In [email protected], "Pan Troglodytes"
<[EMAIL PROTECTED]> wrote:
>
> Could you clarify what you  mean by "works for me"?  Do you mean you are
> getting transparency on the PNG?
> 
> I uploaded my full code for an example:
> 
> http://three.fsphost.com/flex2/png/PNGBug.html
> 
> Just right-click to view the source.
> 
> They both use the same png file.  The first one renders with an olive
> background (the original background color of the image).  The second
renders
> the transparency properly.
> 
> Does this work differently under Flex/Flash Player for you?
> 
> 
> On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> >
> >   <mx:Image source="@Embed(source='plusSymbol.png')"/> orks for me...
> >
> > Not sure what else to recommend.
> >
> > --- In [email protected] <flexcoders%40yahoogroups.com>, "Pan
> > Troglodytes"
> > <chimpathetic@> wrote:
> > >
> > > Sadly, no. It also doesn't work if you declare a variable like
> > >
> > > [Embed(source="/assets/user-big.png")] private var userIcon:Class;
> > >
> > >
> > > FYI, from the docs:
> > >
> > > About the source parameter
> > >
> > > In almost all cases, you must specify the source parameter or
nothing is
> > > embedded.
> > >
> > > The source parameter is the default parameter of the [Embed]
> > metadata tag;
> > > therefore, if you are not specifying any other parameters, you
can just
> > > supply its value without explicitly including the parameter name or
> > > assigning it the desired value
> > >
> > >
> > > On 1/31/07, ben.clinkinbeard <ben.clinkinbeard@> wrote:
> > > >
> > > > According to the docs, the correct syntax is:
> > > >
> > > > <mx:Image source="@Embed(source='assets/user-big.png')"/>
> > > >
> > > > Does that work?
> > > >
> > > > HTH,
> > > > Ben
> > > >
> > > > --- In [email protected]
<flexcoders%40yahoogroups.com><flexcoders%40yahoogroups.com>, "Pan
> >
> > > > Troglodytes"
> > > > <chimpathetic@> wrote:
> > > > >
> > > > > This is still a problem. I couldn't remember if I entered it
in the
> > > > Adobe
> > > > > bug page, so I just went ahead and did it. This is a bit of a
> > pain as
> > > > > transparent icons are very important in GUIs. GIF works fine
but is
> > > > limited
> > > > > to 256 colors.
> > > > >
> > > > >
> > > > >
> > > > > On 12/6/06, Pan Troglodytes <chimpathetic@> wrote:
> > > > > >
> > > > > > I've run into a situation where the exact same PNG file
will show
> > > > up as
> > > > > > transparent only when it's not embedded. Here is the mxml:
> > > > > >
> > > > > > <mx:Image source="@Embed('assets/user-big.png')"/>
> > > > > > <mx:Image source="assets/user- big.png"/>
> > > > > >
> > > > > > Including both images on the page, the first is missing the
> > > > transparent
> > > > > > background. The second is fine. I have manually checked the
> > > > images, both
> > > > > > in the dev directory and bin directory. In fact, I have
manually
> > > > copied the
> > > > > > dev ones over the top of the bin ones to make sure. If I
drag the
> > > > images to
> > > > > > Firefox, both appear with no background. The background
color is
> > > > teal, so I
> > > > > > would definitely notice.
> > > > > >
> > > > > > Near as I can tell, the embed is causing the background
> > > > transparency to
> > > > > > not be processed. I can't find anything in the docs saying
this
> > > > is expected
> > > > > > behavior.
> > > > > >
> > > > > > --
> > > > > > Jason
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Jason
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Jason
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Jason
>


Reply via email to