<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Problem with Transparent PNGs in Flex using @Embed</title>
	<atom:link href="http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/feed/" rel="self" type="application/rss+xml" />
	<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/</link>
	<description>A blog about Adobe Flex</description>
	<pubDate>Fri, 21 Nov 2008 05:49:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Doug Hagan</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-163446</link>
		<dc:creator>Doug Hagan</dc:creator>
		<pubDate>Tue, 02 Sep 2008 22:43:28 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-163446</guid>
		<description>Wow! Doug McCune, thanks a ton for this post.  My experience is that this is not related specifically to the embbed issue.  I was able to get the same png to pass using  but fail when generationg Image() in AS code.    The workaround that we were able to do at this end was to export the png from CS3 into a new file every time.  Any asset which was previously export as (jpg or other) contained corrupted transparency in the png.  I hope this helps someone else, and the link to the adobe bug certainly shed some light on the issue for us and save me a significant amount of time.</description>
		<content:encoded><![CDATA[<p>Wow! Doug McCune, thanks a ton for this post.  My experience is that this is not related specifically to the embbed issue.  I was able to get the same png to pass using  but fail when generationg Image() in AS code.    The workaround that we were able to do at this end was to export the png from CS3 into a new file every time.  Any asset which was previously export as (jpg or other) contained corrupted transparency in the png.  I hope this helps someone else, and the link to the adobe bug certainly shed some light on the issue for us and save me a significant amount of time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MagicCarpet</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-127439</link>
		<dc:creator>MagicCarpet</dc:creator>
		<pubDate>Tue, 22 Jul 2008 12:20:08 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-127439</guid>
		<description>[quot]How should I inform the function that actually has 2 parameters? [/quot]
Fool!</description>
		<content:encoded><![CDATA[<p>[quot]How should I inform the function that actually has 2 parameters? [/quot]<br />
Fool!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcio</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-65507</link>
		<dc:creator>Marcio</dc:creator>
		<pubDate>Fri, 14 Mar 2008 18:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-65507</guid>
		<description>I create the following function 

---------------------------------

package com.cerebrum.utils {

import mx.rpc.events.ResultEvent
import mx.controls.Alert;

public class Result {

[Embed("/assets/images/dialog-information.png")]
public var IconDialogInformation:Class;

public function Result(event:ResultEvent,MyObject:Object):void {
Alert.show("teste", "teste", 4, null, null, IconDialogInformation);
}

}

}

---------------------------------


I as follows 

import Result;

Result(event, meuobjeto);

---------------------------------

Is presented in the following error flex builder 


1137: Incorrect number of arguments.  Expected no more than 1.

---------------------------------

How should I inform the function that actually has 2 parameters?</description>
		<content:encoded><![CDATA[<p>I create the following function </p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>package com.cerebrum.utils {</p>
<p>import mx.rpc.events.ResultEvent<br />
import mx.controls.Alert;</p>
<p>public class Result {</p>
<p>[Embed("/assets/images/dialog-information.png")]<br />
public var IconDialogInformation:Class;</p>
<p>public function Result(event:ResultEvent,MyObject:Object):void {<br />
Alert.show(&#8221;teste&#8221;, &#8220;teste&#8221;, 4, null, null, IconDialogInformation);<br />
}</p>
<p>}</p>
<p>}</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>I as follows </p>
<p>import Result;</p>
<p>Result(event, meuobjeto);</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Is presented in the following error flex builder </p>
<p>1137: Incorrect number of arguments.  Expected no more than 1.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>How should I inform the function that actually has 2 parameters?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jono</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-13329</link>
		<dc:creator>Jono</dc:creator>
		<pubDate>Thu, 06 Sep 2007 22:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-13329</guid>
		<description>This is not a problem in Loaders, but in Java's PNG decoder. Unfortunately, for now, it's a fact of life -- the good news is that there are decent workarounds, and that this is a rare problem for most non-trivial PNGs. Detailed reasoning and workarounds at:
http://bugs.adobe.com/jira/browse/SDK-8877

Jono</description>
		<content:encoded><![CDATA[<p>This is not a problem in Loaders, but in Java&#8217;s PNG decoder. Unfortunately, for now, it&#8217;s a fact of life &#8212; the good news is that there are decent workarounds, and that this is a rare problem for most non-trivial PNGs. Detailed reasoning and workarounds at:<br />
<a href="http://bugs.adobe.com/jira/browse/SDK-8877" rel="nofollow">http://bugs.adobe.com/jira/browse/SDK-8877</a></p>
<p>Jono</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FlexAbility &#187; Blog Archive &#187; Problems with Alpha Transparency in PNGs?</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-3275</link>
		<dc:creator>FlexAbility &#187; Blog Archive &#187; Problems with Alpha Transparency in PNGs?</dc:creator>
		<pubDate>Tue, 08 May 2007 16:38:24 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-3275</guid>
		<description>[...] If your PNG files aren&#8217;t displaying with their transparent areas transparent, take a look at this post by Doug McCune. While it&#8217;s title is Problem with Transparent PNGs in Flex using @Embed, it also solved my problem which didn&#8217;t involve @Embed. [...]</description>
		<content:encoded><![CDATA[<p>[...] If your PNG files aren&#8217;t displaying with their transparent areas transparent, take a look at this post by Doug McCune. While it&#8217;s title is Problem with Transparent PNGs in Flex using @Embed, it also solved my problem which didn&#8217;t involve @Embed. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-74</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Sat, 03 Feb 2007 02:31:19 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-74</guid>
		<description>I've posted a new response to the mailing list but wanted to make sure anyone reading this would follow along.  Here's the short version:

I've put together this transparency test app:

  http://three.fsphost.com/flex2/pngbug/PNGBug.html

(Note: that for some reason, I have problems in Firefox loading Flex apps off this host.  If you run into the same problem, try IE and/or go to the srcview and run it locally)

It's based off this site:
  http://entropymine.com/jason/testbed/pngtrans/

It has a whole bunch of different PNG types with non-transparent GIF showing how it should look properly.  As you can see, some render properly in both the Embed/non-embed, some render correctly as a non-Embed and some render incorrectly as either.  Hopefully, this will give someone a good test to run against when fixing these bugs.

So first, there are the problems in support for PNG.

Second, there is the discrepancy between using @Embed and not using @Embed.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve posted a new response to the mailing list but wanted to make sure anyone reading this would follow along.  Here&#8217;s the short version:</p>
<p>I&#8217;ve put together this transparency test app:</p>
<p>  <a href="http://three.fsphost.com/flex2/pngbug/PNGBug.html" rel="nofollow">http://three.fsphost.com/flex2/pngbug/PNGBug.html</a></p>
<p>(Note: that for some reason, I have problems in Firefox loading Flex apps off this host.  If you run into the same problem, try IE and/or go to the srcview and run it locally)</p>
<p>It&#8217;s based off this site:<br />
  <a href="http://entropymine.com/jason/testbed/pngtrans/" rel="nofollow">http://entropymine.com/jason/testbed/pngtrans/</a></p>
<p>It has a whole bunch of different PNG types with non-transparent GIF showing how it should look properly.  As you can see, some render properly in both the Embed/non-embed, some render correctly as a non-Embed and some render incorrectly as either.  Hopefully, this will give someone a good test to run against when fixing these bugs.</p>
<p>So first, there are the problems in support for PNG.</p>
<p>Second, there is the discrepancy between using @Embed and not using @Embed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Kelp</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-64</link>
		<dc:creator>Mike Kelp</dc:creator>
		<pubDate>Thu, 01 Feb 2007 15:23:29 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-64</guid>
		<description>Haha, yea...I realized I hadn't quite gotten it right when I read the entire thread you linked to. I apologize for being too quick on that.

Sorry for the confusion haha.

Mike.</description>
		<content:encoded><![CDATA[<p>Haha, yea&#8230;I realized I hadn&#8217;t quite gotten it right when I read the entire thread you linked to. I apologize for being too quick on that.</p>
<p>Sorry for the confusion haha.</p>
<p>Mike.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-62</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Thu, 01 Feb 2007 06:28:29 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-62</guid>
		<description>Yeah, I'm certainly not saying that the &#60;Image /&#62; component doesn't normally work with transparent PNGs. It usually does. I think there's something weird about that image, and I don't know the PNG format well enough to really figure out why that particular image might be special. But download that PNG image and try it out and it won't work right.

The discussion on flexcoders mostly went along the lines of: "But of course you can use transparent PNGs in the Image component!" My point was just to validate the original poster's observation that in this particular case, with this image, it doesn't work right.</description>
		<content:encoded><![CDATA[<p>Yeah, I&#8217;m certainly not saying that the &lt;Image /&gt; component doesn&#8217;t normally work with transparent PNGs. It usually does. I think there&#8217;s something weird about that image, and I don&#8217;t know the PNG format well enough to really figure out why that particular image might be special. But download that PNG image and try it out and it won&#8217;t work right.</p>
<p>The discussion on flexcoders mostly went along the lines of: &#8220;But of course you can use transparent PNGs in the Image component!&#8221; My point was just to validate the original poster&#8217;s observation that in this particular case, with this image, it doesn&#8217;t work right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Kelp</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-61</link>
		<dc:creator>Mike Kelp</dc:creator>
		<pubDate>Thu, 01 Feb 2007 05:21:57 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-61</guid>
		<description>Sorry, code got cleaned up for me :-)
&#60;mx:Image source="@Embed(source='image-path.png')"
			click="togglePlayStatus();" /&#62;</description>
		<content:encoded><![CDATA[<p>Sorry, code got cleaned up for me <img src='http://dougmccune.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
&lt;mx:Image source=&#8221;@Embed(source=&#8217;image-path.png&#8217;)&#8221;<br />
			click=&#8221;togglePlayStatus();&#8221; /&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Kelp</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-60</link>
		<dc:creator>Mike Kelp</dc:creator>
		<pubDate>Thu, 01 Feb 2007 05:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-60</guid>
		<description>Just to be clear, I just checked the source and am definitely using the @Embed format multiple times without issue, like so:


Sorry for the extended comment.

Mike.</description>
		<content:encoded><![CDATA[<p>Just to be clear, I just checked the source and am definitely using the @Embed format multiple times without issue, like so:</p>
<p>Sorry for the extended comment.</p>
<p>Mike.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
