<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<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>
	<lastBuildDate>Tue, 16 Mar 2010 15:47:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: NewAge</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/comment-page-1/#comment-208751</link>
		<dc:creator>NewAge</dc:creator>
		<pubDate>Thu, 31 Dec 2009 01:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-208751</guid>
		<description>I wrote this code, but it shows me always a not transparent image...

private var bitmap_mod:BitmapData = new BitmapData(1600, 1600);

[Embed(source=&quot;/assets/terrain/gamemap_t0.gif&quot;,mimeType=&quot;image/jpeg&quot;)]
private var Mountain01:Class;

private var library:Object = {};
var bma:BitmapAsset = new Mountain01() as BitmapAsset;
library[0] = bma.bitmapData;

			
var tile:Rectangle;
tile = new Rectangle(0,0,140,140);
			
bitmap_mod.copyPixels(library[0], tile, new Point(0, 0));


Can Someone help me?</description>
		<content:encoded><![CDATA[<p>I wrote this code, but it shows me always a not transparent image&#8230;</p>
<p>private var bitmap_mod:BitmapData = new BitmapData(1600, 1600);</p>
<p>[Embed(source="/assets/terrain/gamemap_t0.gif",mimeType="image/jpeg")]<br />
private var Mountain01:Class;</p>
<p>private var library:Object = {};<br />
var bma:BitmapAsset = new Mountain01() as BitmapAsset;<br />
library[0] = bma.bitmapData;</p>
<p>var tile:Rectangle;<br />
tile = new Rectangle(0,0,140,140);</p>
<p>bitmap_mod.copyPixels(library[0], tile, new Point(0, 0));</p>
<p>Can Someone help me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ivan</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/comment-page-1/#comment-208441</link>
		<dc:creator>Ivan</dc:creator>
		<pubDate>Sat, 26 Sep 2009 04:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-208441</guid>
		<description>Check my solution http://www.codeguiles.com/2009/09/20/flex-transparency-with-png-on-mouse-over-and-mouse-click/</description>
		<content:encoded><![CDATA[<p>Check my solution <a href="http://www.codeguiles.com/2009/09/20/flex-transparency-with-png-on-mouse-over-and-mouse-click/" rel="nofollow">http://www.codeguiles.com/2009/09/20/flex-transparency-with-png-on-mouse-over-and-mouse-click/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean M</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/comment-page-1/#comment-207681</link>
		<dc:creator>Sean M</dc:creator>
		<pubDate>Fri, 20 Mar 2009 12:58:57 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-207681</guid>
		<description>I&#039;m trying to use the new classes, but I get an out of range error.  Has anyone else experienced this problem?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to use the new classes, but I get an out of range error.  Has anyone else experienced this problem?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lee probert</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/comment-page-1/#comment-207432</link>
		<dc:creator>lee probert</dc:creator>
		<pubDate>Wed, 04 Feb 2009 22:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-207432</guid>
		<description>I&#039;m having an issue with a bunch of PNG files that although will load fine locally refuse to load and display a broken link when accessed off the server via HTTP ... I have a feeling it has something to do with the PNG ... there used to be an issue with the way they were saved ... progressive option???</description>
		<content:encoded><![CDATA[<p>I&#8217;m having an issue with a bunch of PNG files that although will load fine locally refuse to load and display a broken link when accessed off the server via HTTP &#8230; I have a feeling it has something to do with the PNG &#8230; there used to be an issue with the way they were saved &#8230; progressive option???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fotis</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/comment-page-1/#comment-207330</link>
		<dc:creator>Fotis</dc:creator>
		<pubDate>Wed, 17 Dec 2008 18:48:37 +0000</pubDate>
		<guid isPermaLink="false">http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/#comment-207330</guid>
		<description>The problem only appears with 8-bit transparent pngs. If you save as 24bit the problem goes away... In case it helps anybody ;-)</description>
		<content:encoded><![CDATA[<p>The problem only appears with 8-bit transparent pngs. If you save as 24bit the problem goes away&#8230; In case it helps anybody <img src='http://dougmccune.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Hagan</title>
		<link>http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/comment-page-1/#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-page-1/#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-page-1/#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(&quot;/assets/images/dialog-information.png&quot;)]
public var IconDialogInformation:Class;

public function Result(event:ResultEvent,MyObject:Object):void {
Alert.show(&quot;teste&quot;, &quot;teste&quot;, 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(&#8220;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-page-1/#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&#039;s PNG decoder. Unfortunately, for now, it&#039;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-page-1/#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>
</channel>
</rss>
