<?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: Embedding images into a Flash document using the [Embed] metadata</title>
	<atom:link href="http://actionscriptexamples.com/2008/10/26/embedding-images-into-a-flash-document-using-the-embed-metadata/feed/" rel="self" type="application/rss+xml" />
	<link>http://actionscriptexamples.com/2008/10/26/embedding-images-into-a-flash-document-using-the-embed-metadata/</link>
	<description>A bunch of ActionScript 2.0 and ActionScript 3.0 examples*</description>
	<lastBuildDate>Sun, 21 Mar 2010 00:56:04 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: srikanth</title>
		<link>http://actionscriptexamples.com/2008/10/26/embedding-images-into-a-flash-document-using-the-embed-metadata/comment-page-1/#comment-603</link>
		<dc:creator>srikanth</dc:creator>
		<pubDate>Mon, 26 Oct 2009 11:05:48 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=27#comment-603</guid>
		<description>Thanks Peter,
Above code works fine in Flash CS4.
I wanted to confirm if Flash CS3 can embed image from external location and your suggestion answered my query.

Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks Peter,<br />
Above code works fine in Flash CS4.<br />
I wanted to confirm if Flash CS3 can embed image from external location and your suggestion answered my query.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://actionscriptexamples.com/2008/10/26/embedding-images-into-a-flash-document-using-the-embed-metadata/comment-page-1/#comment-602</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Sun, 25 Oct 2009 23:48:53 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=27#comment-602</guid>
		<description>@Srikanth,

I believe you&#039;d need Flash CS4 in order to use the Flex [Embed] metadata.

Peter</description>
		<content:encoded><![CDATA[<p>@Srikanth,</p>
<p>I believe you&#8217;d need Flash CS4 in order to use the Flex [Embed] metadata.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Srikanth</title>
		<link>http://actionscriptexamples.com/2008/10/26/embedding-images-into-a-flash-document-using-the-embed-metadata/comment-page-1/#comment-601</link>
		<dc:creator>Srikanth</dc:creator>
		<pubDate>Sun, 25 Oct 2009 18:07:51 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=27#comment-601</guid>
		<description>Hi, I need your help.
I have tried your code in Flex AS3 proj, and it worked well.
I was successful in generating an swf with embedded image.
But when I try to do the same using FlashCS3, it is giving me errors.

My requirement is .Fla without any images in library, once compiled should have an embedded image in itself.

Here is the code. Please help.
&lt;pre lang=&quot;actionscript3&quot;&gt;
package
{
	import flash.display.DisplayObject;
	import flash.display.*;
public class Main2
	{
		[Embed(&quot;test.jpg&quot;)]
		const BulletRed:Class;
		 
		public function Main2()
		{
			var bullet:DisplayObject = new BulletRed();
			bullet.x = 10;
			bullet.y = 10;
			addChild(bullet);
		}
	}
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi, I need your help.<br />
I have tried your code in Flex AS3 proj, and it worked well.<br />
I was successful in generating an swf with embedded image.<br />
But when I try to do the same using FlashCS3, it is giving me errors.</p>
<p>My requirement is .Fla without any images in library, once compiled should have an embedded image in itself.</p>
<p>Here is the code. Please help.</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span>
<span style="color: #000000;">&#123;</span>
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #004993;">DisplayObject</span>;
	<span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.display</span>.<span style="color: #000000; font-weight: bold;">*</span>;
<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> Main2
	<span style="color: #000000;">&#123;</span>
		<span style="color: #000000;">&#91;</span>Embed<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;test.jpg&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span>
		const BulletRed<span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">Class</span>;
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #339966; font-weight: bold;">function</span> Main2<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">bullet</span><span style="color: #000000; font-weight: bold;">:</span><span style="color: #004993;">DisplayObject</span> = <span style="color: #0033ff; font-weight: bold;">new</span> BulletRed<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;
			<span style="color: #004993;">bullet</span>.<span style="color: #004993;">x</span> = <span style="color: #000000; font-weight:bold;">10</span>;
			<span style="color: #004993;">bullet</span>.<span style="color: #004993;">y</span> = <span style="color: #000000; font-weight:bold;">10</span>;
			<span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">bullet</span><span style="color: #000000;">&#41;</span>;
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: dev_jc</title>
		<link>http://actionscriptexamples.com/2008/10/26/embedding-images-into-a-flash-document-using-the-embed-metadata/comment-page-1/#comment-577</link>
		<dc:creator>dev_jc</dc:creator>
		<pubDate>Wed, 19 Aug 2009 14:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=27#comment-577</guid>
		<description>This would work:
removeChild(object);

Have you tried this?</description>
		<content:encoded><![CDATA[<p>This would work:<br />
removeChild(object);</p>
<p>Have you tried this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: b2b</title>
		<link>http://actionscriptexamples.com/2008/10/26/embedding-images-into-a-flash-document-using-the-embed-metadata/comment-page-1/#comment-541</link>
		<dc:creator>b2b</dc:creator>
		<pubDate>Mon, 22 Jun 2009 08:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://actionscriptexamples.com/?p=27#comment-541</guid>
		<description>can I remove images after that?</description>
		<content:encoded><![CDATA[<p>can I remove images after that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
