<?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: Serializing File Reference Instances in Adobe AIR</title>
	<atom:link href="http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/</link>
	<description>code = joy</description>
	<pubDate>Fri, 21 Nov 2008 06:32:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: AS3 - Resume Upload - possible? - Ultrashock Forums</title>
		<link>http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-12557</link>
		<dc:creator>AS3 - Resume Upload - possible? - Ultrashock Forums</dc:creator>
		<pubDate>Fri, 20 Jun 2008 20:18:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-12557</guid>
		<description>[...] If serializing a FileReference is what's necessary - would this work?  http://www.mikechambers.com/blog/200...-in-adobe-air/ [...]</description>
		<content:encoded><![CDATA[<p>[...] If serializing a FileReference is what&#8217;s necessary - would this work?  <a href="http://www.mikechambers.com/blog/200...-in-adobe-air/" rel="nofollow">http://www.mikechambers.com/blog/200&#8230;-in-adobe-air/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Reinier Rossen</title>
		<link>http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-11157</link>
		<dc:creator>Reinier Rossen</dc:creator>
		<pubDate>Wed, 13 Feb 2008 00:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-11157</guid>
		<description>Hi Mike,

Great post, it really helped me out but i ran into another problem i can not figure out so far. If you listen for the SELECT_MULTIPLE event you receive an event object with a property "files", which is an array that in turn containts File instances...not MyFile objects, even though the original object firing that event was of the MyFile type.

Am i running into a technical limitation here or just missing something? I fear the former, i hope the latter.

Cheers from the Netherlands!</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>Great post, it really helped me out but i ran into another problem i can not figure out so far. If you listen for the SELECT_MULTIPLE event you receive an event object with a property &#8220;files&#8221;, which is an array that in turn containts File instances&#8230;not MyFile objects, even though the original object firing that event was of the MyFile type.</p>
<p>Am i running into a technical limitation here or just missing something? I fear the former, i hope the latter.</p>
<p>Cheers from the Netherlands!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mikechambers</title>
		<link>http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8467</link>
		<dc:creator>mikechambers</dc:creator>
		<pubDate>Mon, 25 Jun 2007 16:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8467</guid>
		<description>&gt;Just out of curiosityâ€¦ why would you serialize a class into local storage?

Hehe... I was waiting for someone to ask that. 

Basically, I needed to associated from meta data with an image that I had written to the file system. I could have created a value object that contained the file path and the meta data, but:

1. seemed like overkill when I could just store the file reference
2. I was worried about the value object getting out of sync with the file system

Plus, it makes the code a little cleaner when I am serializing and de-serializing objects.

You can view the code here:

http://onairbustour.googlecode.com/svn/trunk/projects/AIRSnapshot/src/

To be honest, im not sure if this is a "best practices" sort of thing, but regardless, the technique works for other classes also.

mike chambers

mesh@adobe.com</description>
		<content:encoded><![CDATA[<p>>Just out of curiosityâ€¦ why would you serialize a class into local storage?</p>
<p>Hehe&#8230; I was waiting for someone to ask that. </p>
<p>Basically, I needed to associated from meta data with an image that I had written to the file system. I could have created a value object that contained the file path and the meta data, but:</p>
<p>1. seemed like overkill when I could just store the file reference<br />
2. I was worried about the value object getting out of sync with the file system</p>
<p>Plus, it makes the code a little cleaner when I am serializing and de-serializing objects.</p>
<p>You can view the code here:</p>
<p><a href="http://onairbustour.googlecode.com/svn/trunk/projects/AIRSnapshot/src/" rel="nofollow">http://onairbustour.googlecode.com/svn/trunk/projects/AIRSnapshot/src/</a></p>
<p>To be honest, im not sure if this is a &#8220;best practices&#8221; sort of thing, but regardless, the technique works for other classes also.</p>
<p>mike chambers</p>
<p><a href="mailto:mesh@adobe.com">mesh@adobe.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anand Vardhan :: flex developer &#187; Blog Archive &#187; Serializing File Reference Instances in Adobe AIR:Mike Chambers</title>
		<link>http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8461</link>
		<dc:creator>Anand Vardhan :: flex developer &#187; Blog Archive &#187; Serializing File Reference Instances in Adobe AIR:Mike Chambers</dc:creator>
		<pubDate>Mon, 25 Jun 2007 08:50:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8461</guid>
		<description>[...] mikechambers&#8216;blog June 22nd, 2007 [...]</description>
		<content:encoded><![CDATA[<p>[...] mikechambers&#8216;blog June 22nd, 2007 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serializing File Reference Instances in Adobe AIR - By Mike Chambers &#171; Flash Enabled - Get Ready With Flash&#8230;</title>
		<link>http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8460</link>
		<dc:creator>Serializing File Reference Instances in Adobe AIR - By Mike Chambers &#171; Flash Enabled - Get Ready With Flash&#8230;</dc:creator>
		<pubDate>Mon, 25 Jun 2007 08:27:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8460</guid>
		<description>[...] Check the article and code here. [...]</description>
		<content:encoded><![CDATA[<p>[...] Check the article and code here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doubleslash</title>
		<link>http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8444</link>
		<dc:creator>Doubleslash</dc:creator>
		<pubDate>Sun, 24 Jun 2007 12:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8444</guid>
		<description>Hi Mike,

just wanted to know, why you want to (de-)serialize a File-reference?

Greetz</description>
		<content:encoded><![CDATA[<p>Hi Mike,</p>
<p>just wanted to know, why you want to (de-)serialize a File-reference?</p>
<p>Greetz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Diego Volpe</title>
		<link>http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8409</link>
		<dc:creator>Diego Volpe</dc:creator>
		<pubDate>Sat, 23 Jun 2007 03:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8409</guid>
		<description>I've been using this technique to serialize/deserialize the state of the user and all "presentation" data generated by him in a application like Scrapblog.
It is easier to save and retrieve complex information (hierarchical object tree) and keep the state (selected items, editing properties, preferences, context, etc).</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been using this technique to serialize/deserialize the state of the user and all &#8220;presentation&#8221; data generated by him in a application like Scrapblog.<br />
It is easier to save and retrieve complex information (hierarchical object tree) and keep the state (selected items, editing properties, preferences, context, etc).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chase Brammer</title>
		<link>http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8407</link>
		<dc:creator>Chase Brammer</dc:creator>
		<pubDate>Sat, 23 Jun 2007 00:06:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.mikechambers.com/blog/2007/06/22/serializing-file-reference-instances-in-adobe-air/#comment-8407</guid>
		<description>Just out of curiosity... why would you serialize a class into local storage?</description>
		<content:encoded><![CDATA[<p>Just out of curiosity&#8230; why would you serialize a class into local storage?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
