<?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: How to embed a text file in Flash</title>
	<atom:link href="http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/</link>
	<description>italian geek and PROgrammer</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:12:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Christopher</title>
		<link>http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/#comment-839854</link>
		<dc:creator>Christopher</dc:creator>
		<pubDate>Mon, 23 May 2011 21:26:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1371#comment-839854</guid>
		<description>You could also do something like:

[Embed(source=&quot;words.txt&quot;,mimeType=&quot;application/octet-stream&quot;)]
private var embeddedWords:Class;
public var words:String = String(new embeddedWords as ByteArray);</description>
		<content:encoded><![CDATA[<p>You could also do something like:</p>
<p>[Embed(source="words.txt",mimeType="application/octet-stream")]<br />
private var embeddedWords:Class;<br />
public var words:String = String(new embeddedWords as ByteArray);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vojta</title>
		<link>http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/#comment-633804</link>
		<dc:creator>Vojta</dc:creator>
		<pubDate>Sat, 04 Sep 2010 11:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1371#comment-633804</guid>
		<description>Hi, 
A small note on the tutorial -
you don&#039;t need to create the embedded_class manualy, i&#039;d rather consider creating it directly in the code (for better code organisation).

Here&#039;s the example:

[Embed(source = &#039;../../../assets/texty/who_am_i.txt&#039;, mimeType = &#039;application/octet-stream&#039;)]
private var src_who_am_i:Class
public function f_who_am_i():void
{
	var text_source:ByteArray = new src_who_am_i() as ByteArray;
	text_field.text = text_source.toString()
}

BR,
Vojta</description>
		<content:encoded><![CDATA[<p>Hi,<br />
A small note on the tutorial -<br />
you don&#8217;t need to create the embedded_class manualy, i&#8217;d rather consider creating it directly in the code (for better code organisation).</p>
<p>Here&#8217;s the example:</p>
<p>[Embed(source = '../../../assets/texty/who_am_i.txt', mimeType = 'application/octet-stream')]<br />
private var src_who_am_i:Class<br />
public function f_who_am_i():void<br />
{<br />
	var text_source:ByteArray = new src_who_am_i() as ByteArray;<br />
	text_field.text = text_source.toString()<br />
}</p>
<p>BR,<br />
Vojta</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#160; How to use an embedded text file in Flash&#160;by&#160;Blam Yo!</title>
		<link>http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/#comment-480989</link>
		<dc:creator>&#160; How to use an embedded text file in Flash&#160;by&#160;Blam Yo!</dc:creator>
		<pubDate>Tue, 04 Aug 2009 23:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1371#comment-480989</guid>
		<description>[...] The opportunity to win up to $7000 with “Word Play” Flash Game Contest ends in 20 days, and I already showed you how to embed a text file in Flash. [...]</description>
		<content:encoded><![CDATA[<p>[...] The opportunity to win up to $7000 with “Word Play” Flash Game Contest ends in 20 days, and I already showed you how to embed a text file in Flash. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alpesh Vaghasiya</title>
		<link>http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/#comment-479013</link>
		<dc:creator>Alpesh Vaghasiya</dc:creator>
		<pubDate>Fri, 31 Jul 2009 05:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1371#comment-479013</guid>
		<description>Same Here. I also try in Flash CS3 nothing is working.</description>
		<content:encoded><![CDATA[<p>Same Here. I also try in Flash CS3 nothing is working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: How to use an embedded text file in Flash : Emanuele Feronato</title>
		<link>http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/#comment-476907</link>
		<dc:creator>How to use an embedded text file in Flash : Emanuele Feronato</dc:creator>
		<pubDate>Fri, 24 Jul 2009 13:23:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1371#comment-476907</guid>
		<description>[...] The opportunity to win up to $7000 with “Word Play” Flash Game Contest ends in 20 days, and I already showed you how to embed a text file in Flash. [...]</description>
		<content:encoded><![CDATA[<p>[...] The opportunity to win up to $7000 with “Word Play” Flash Game Contest ends in 20 days, and I already showed you how to embed a text file in Flash. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan</title>
		<link>http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/#comment-469383</link>
		<dc:creator>Nathan</dc:creator>
		<pubDate>Sun, 05 Jul 2009 18:19:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1371#comment-469383</guid>
		<description>When I tried it out nothing happened

I&#039;m using Flash CS3</description>
		<content:encoded><![CDATA[<p>When I tried it out nothing happened</p>
<p>I&#8217;m using Flash CS3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Radi</title>
		<link>http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/#comment-466560</link>
		<dc:creator>Radi</dc:creator>
		<pubDate>Sun, 28 Jun 2009 01:29:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1371#comment-466560</guid>
		<description>Hey, thanks for the info. this is really what I&#039;m looking for! ^^</description>
		<content:encoded><![CDATA[<p>Hey, thanks for the info. this is really what I&#8217;m looking for! ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Idden</title>
		<link>http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/#comment-465382</link>
		<dc:creator>Idden</dc:creator>
		<pubDate>Thu, 25 Jun 2009 10:45:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1371#comment-465382</guid>
		<description>Nice Work around.
You gain speed but lose a flexibility. If you want to change the word list, you will have to compile the swf again.

@Roland It doesn&#039;t work in AS2 but you can try swfmill to do somthing similar: http://swfmill.org/</description>
		<content:encoded><![CDATA[<p>Nice Work around.<br />
You gain speed but lose a flexibility. If you want to change the word list, you will have to compile the swf again.</p>
<p>@Roland It doesn&#8217;t work in AS2 but you can try swfmill to do somthing similar: <a href="http://swfmill.org/" rel="nofollow">http://swfmill.org/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Spence</title>
		<link>http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/#comment-465274</link>
		<dc:creator>Christopher Spence</dc:creator>
		<pubDate>Thu, 25 Jun 2009 04:07:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1371#comment-465274</guid>
		<description>HiddenSpartan: This works in Actionscript 3 without Flex Builder though it does require installation of the free Flex SDK, and a non Flash-IDE compiler (e.g., FlashDevelop, Command Line w/ ANT). I know that Flash CS3 did not support embed directives, though I understand that CS4 supports at least Font embedding... so maybe this works in Flash CS4?  

I don&#039;t imagine that an AS2 example exists; perhaps you could try using an include statement. 

I used something similar to this for compressing xml into a swf (it&#039;s like a 90% savings on file size when you enter the xml directly as a string in an AS class... it&#039;s a bit less compression using the method described above, because the class compiles with a class or two from the mx package (where flex sdk comes in)

Anyhow, this is a cool and very under-documented trick.</description>
		<content:encoded><![CDATA[<p>HiddenSpartan: This works in Actionscript 3 without Flex Builder though it does require installation of the free Flex SDK, and a non Flash-IDE compiler (e.g., FlashDevelop, Command Line w/ ANT). I know that Flash CS3 did not support embed directives, though I understand that CS4 supports at least Font embedding&#8230; so maybe this works in Flash CS4?  </p>
<p>I don&#8217;t imagine that an AS2 example exists; perhaps you could try using an include statement. </p>
<p>I used something similar to this for compressing xml into a swf (it&#8217;s like a 90% savings on file size when you enter the xml directly as a string in an AS class&#8230; it&#8217;s a bit less compression using the method described above, because the class compiles with a class or two from the mx package (where flex sdk comes in)</p>
<p>Anyhow, this is a cool and very under-documented trick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Chambers</title>
		<link>http://www.emanueleferonato.com/2009/06/24/how-to-embed-a-text-file-in-flash/#comment-465241</link>
		<dc:creator>Mike Chambers</dc:creator>
		<pubDate>Thu, 25 Jun 2009 02:34:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.emanueleferonato.com/?p=1371#comment-465241</guid>
		<description>@HiddenSpartan

--
From what I’ve heard, that only works in Flex
--

Flash CS4 uses the MXMLC compiler, so you can use the meta data tags / commands.</description>
		<content:encoded><![CDATA[<p>@HiddenSpartan</p>
<p>&#8211;<br />
From what I’ve heard, that only works in Flex<br />
&#8211;</p>
<p>Flash CS4 uses the MXMLC compiler, so you can use the meta data tags / commands.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 6/11 queries in 0.010 seconds using disk: basic

Served from: www.emanueleferonato.com @ 2012-02-11 04:57:23 -->
