<?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: Embed Almost Anything in Your SWF</title>
	<atom:link href="http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/feed/" rel="self" type="application/rss+xml" />
	<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/</link>
	<description>Collective thoughts on the Flash Platform, iOS, Unity, and any other technology we use.</description>
	<lastBuildDate>Tue, 24 Jan 2012 12:18:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Isaac Ewing</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-177687</link>
		<dc:creator>Isaac Ewing</dc:creator>
		<pubDate>Fri, 23 Dec 2011 02:44:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-177687</guid>
		<description>Dude, this article is old as hell and yet, it&#039;s easily one of the most helpful articles I&#039;ve read in a long time!!! The mime type as a bytearray saved me so much time. Thank you so much for sharing.</description>
		<content:encoded><![CDATA[<p>Dude, this article is old as hell and yet, it&#8217;s easily one of the most helpful articles I&#8217;ve read in a long time!!! The mime type as a bytearray saved me so much time. Thank you so much for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jksnu</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-177588</link>
		<dc:creator>jksnu</dc:creator>
		<pubDate>Thu, 29 Sep 2011 09:55:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-177588</guid>
		<description>Very nice material about embed tag. I am using a xml file like 

      


and tried to embed it with code like
[Embed(source=&quot;XML/Test.xml&quot;, mimeType=&quot;text/xml&quot;)]
var miximizeImg12:Class;

I got error like 
Syntax Error: There should be semicolon befor height.

Then I change the mime-type of the embed tag like
[Embed(source=&quot;XML/Test.xml&quot;, mimeType=&quot;application/octet-stream&quot;)]
var miximizeImg12:Class;

and the errors are removed.

So, I think second option is better to use with xml files.</description>
		<content:encoded><![CDATA[<p>Very nice material about embed tag. I am using a xml file like </p>
<p>and tried to embed it with code like<br />
[Embed(source="XML/Test.xml", mimeType="text/xml")]<br />
var miximizeImg12:Class;</p>
<p>I got error like<br />
Syntax Error: There should be semicolon befor height.</p>
<p>Then I change the mime-type of the embed tag like<br />
[Embed(source="XML/Test.xml", mimeType="application/octet-stream")]<br />
var miximizeImg12:Class;</p>
<p>and the errors are removed.</p>
<p>So, I think second option is better to use with xml files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-177487</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Sat, 06 Aug 2011 19:56:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-177487</guid>
		<description>I was having an issue with embedding xml and figured out that the path to the xml is not the same as if you were dynamical loading images or something like that.  As it loads the xml or what ever your loading at compile time the path is from you class to the xml or what ever your loading on your os.  so for me it was ../../resources/my.xml  and my class being in com/classes/myclass.as . hope this helps someone.</description>
		<content:encoded><![CDATA[<p>I was having an issue with embedding xml and figured out that the path to the xml is not the same as if you were dynamical loading images or something like that.  As it loads the xml or what ever your loading at compile time the path is from you class to the xml or what ever your loading on your os.  so for me it was ../../resources/my.xml  and my class being in com/classes/myclass.as . hope this helps someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Judah</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-177282</link>
		<dc:creator>Judah</dc:creator>
		<pubDate>Tue, 18 Jan 2011 12:25:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-177282</guid>
		<description>This is what I had to do to embed my XML file:

[Embed(source=&quot;verses.xml&quot;, mimeType=&quot;application/octet-stream&quot;)]
public static const EmbeddedXML:Class;
public var verses:XML = new XML(new EmbeddedXML());</description>
		<content:encoded><![CDATA[<p>This is what I had to do to embed my XML file:</p>
<p>[Embed(source="verses.xml", mimeType="application/octet-stream")]<br />
public static const EmbeddedXML:Class;<br />
public var verses:XML = new XML(new EmbeddedXML());</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Lin</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-177225</link>
		<dc:creator>James Lin</dc:creator>
		<pubDate>Mon, 18 Oct 2010 23:28:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-177225</guid>
		<description>Thanks Roberto!  Your trick worked for me in FlashDevelop!

I was getting an error &quot;does not extend the &#039;DefineBinaryData&#039; asset base class &#039;flash.utils.ByteArray&#039;.&quot; when I tried to load it as a ByteArray.</description>
		<content:encoded><![CDATA[<p>Thanks Roberto!  Your trick worked for me in FlashDevelop!</p>
<p>I was getting an error &#8220;does not extend the &#8216;DefineBinaryData&#8217; asset base class &#8216;flash.utils.ByteArray&#8217;.&#8221; when I tried to load it as a ByteArray.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roberto Gazulo</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-177156</link>
		<dc:creator>Roberto Gazulo</dc:creator>
		<pubDate>Mon, 26 Jul 2010 08:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-177156</guid>
		<description>Found an awesome post about Embedding Asset at Compile Time in &gt;&gt; Pure AS3 &lt;&lt; Project :
http://nascode.com/2010/02/01/embedding-asset-at-compile-time-in-pure-as3-project/</description>
		<content:encoded><![CDATA[<p>Found an awesome post about Embedding Asset at Compile Time in &gt;&gt; Pure AS3 &lt;&lt; Project :<br />
<a href="http://nascode.com/2010/02/01/embedding-asset-at-compile-time-in-pure-as3-project/" rel="nofollow">http://nascode.com/2010/02/01/embedding-asset-at-compile-time-in-pure-as3-project/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roberto Gazulo</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-177155</link>
		<dc:creator>Roberto Gazulo</dc:creator>
		<pubDate>Sun, 25 Jul 2010 23:12:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-177155</guid>
		<description>Hi Roger, this snippet didn&#039;t work for me in flashdevelop
 
	var x:XML = XML(new EmbeddedXML());
	trace(x.toXMLString()); //it should work!

to make it work I had to change it to:

	[Embed(source = &#039;test.xml&#039;)]
	private var EmbeddedXML:Class;

	var x:XML = EmbeddedXML.data as XML;
	trace(x.toXMLString()); //works!!

.data is the trick!</description>
		<content:encoded><![CDATA[<p>Hi Roger, this snippet didn&#8217;t work for me in flashdevelop</p>
<p>	var x:XML = XML(new EmbeddedXML());<br />
	trace(x.toXMLString()); //it should work!</p>
<p>to make it work I had to change it to:</p>
<p>	[Embed(source = 'test.xml')]<br />
	private var EmbeddedXML:Class;</p>
<p>	var x:XML = EmbeddedXML.data as XML;<br />
	trace(x.toXMLString()); //works!!</p>
<p>.data is the trick!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paco lopez</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-177151</link>
		<dc:creator>paco lopez</dc:creator>
		<pubDate>Tue, 20 Jul 2010 14:53:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-177151</guid>
		<description>heres a list of available mimeTypes

http://livedocs.adobe.com/flex/3/html/help.html?content=embed_3.html</description>
		<content:encoded><![CDATA[<p>heres a list of available mimeTypes</p>
<p><a href="http://livedocs.adobe.com/flex/3/html/help.html?content=embed_3.html" rel="nofollow">http://livedocs.adobe.com/flex/3/html/help.html?content=embed_3.html</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yuki</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-174118</link>
		<dc:creator>Yuki</dc:creator>
		<pubDate>Thu, 18 Mar 2010 16:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-174118</guid>
		<description>I just want to add something.
mimeType octet-stream also could open .txt file (in case your input isn&#039;t xml   but plain text) and it works even if you load them as String and not ByteArray.

Nice tutorial :)</description>
		<content:encoded><![CDATA[<p>I just want to add something.<br />
mimeType octet-stream also could open .txt file (in case your input isn&#8217;t xml   but plain text) and it works even if you load them as String and not ByteArray.</p>
<p>Nice tutorial :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aidan Fraser</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-172220</link>
		<dc:creator>Aidan Fraser</dc:creator>
		<pubDate>Wed, 24 Feb 2010 03:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-172220</guid>
		<description>Hey, don&#039;t forget about Endianness - Flash&#039;s default Endian is BIG_ENDIAN, which is wrong for many binary data files, and might lead you to think that it&#039;s corrupted or something...</description>
		<content:encoded><![CDATA[<p>Hey, don&#8217;t forget about Endianness &#8211; Flash&#8217;s default Endian is BIG_ENDIAN, which is wrong for many binary data files, and might lead you to think that it&#8217;s corrupted or something&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Using binary data in Actionscript 3 &#171; Shide and Prame</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-172219</link>
		<dc:creator>Using binary data in Actionscript 3 &#171; Shide and Prame</dc:creator>
		<pubDate>Wed, 24 Feb 2010 03:51:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-172219</guid>
		<description>[...] to embed? Check this article on embedding binary data at dispatchevent.org. For those in a hurry, this is what I took away from [...]</description>
		<content:encoded><![CDATA[<p>[...] to embed? Check this article on embedding binary data at dispatchevent.org. For those in a hurry, this is what I took away from [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-168606</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Sat, 30 Jan 2010 07:29:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-168606</guid>
		<description>Thanks for the great tutorial on this!  I like to make games and use XML to store some data, like weapons and levels, and this way I can compile to one SWF and not have to worry about whether or not the SWF can load the XML files from my server, or another server or w/e.</description>
		<content:encoded><![CDATA[<p>Thanks for the great tutorial on this!  I like to make games and use XML to store some data, like weapons and levels, and this way I can compile to one SWF and not have to worry about whether or not the SWF can load the XML files from my server, or another server or w/e.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pat Ferguson</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-164134</link>
		<dc:creator>Pat Ferguson</dc:creator>
		<pubDate>Fri, 04 Dec 2009 21:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-164134</guid>
		<description>This is Awesome!!!  I successfully embedded an Amiga MOD file into a swf and played it back using Flod Pro.

Thank You so much for this fantastic bit of info!</description>
		<content:encoded><![CDATA[<p>This is Awesome!!!  I successfully embedded an Amiga MOD file into a swf and played it back using Flod Pro.</p>
<p>Thank You so much for this fantastic bit of info!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dawid</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-164014</link>
		<dc:creator>Dawid</dc:creator>
		<pubDate>Thu, 03 Dec 2009 00:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-164014</guid>
		<description>Hi

This will work:

[Embed(source=&quot;level4.xml&quot;, mimeType=&quot;application/octet-stream&quot;)]
private static const Level4:Class;
private static const _LEVEL4:XML = XML(new Level4());
static public function get LEVEL4():XML { return _LEVEL4; }</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>This will work:</p>
<p>[Embed(source="level4.xml", mimeType="application/octet-stream")]<br />
private static const Level4:Class;<br />
private static const _LEVEL4:XML = XML(new Level4());<br />
static public function get LEVEL4():XML { return _LEVEL4; }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blog.macrominds &#124; &#187; Flex embed almost any binary data</title>
		<link>http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/comment-page-1/#comment-157466</link>
		<dc:creator>blog.macrominds &#124; &#187; Flex embed almost any binary data</dc:creator>
		<pubDate>Thu, 03 Sep 2009 13:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.partlyhuman.com/blog/roger/embed-almost-anything-in-your-swf#comment-157466</guid>
		<description>[...] http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/  [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/" rel="nofollow">http://dispatchevent.org/roger/embed-almost-anything-in-your-swf/</a>  [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

