<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - flash - 9.0 - ActionScriptLangRefV3 - flash/filesystem/FileStream.html</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T16:19:31</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filesystem/FileStream.html#83745" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filesystem/FileStream.html#83723" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filesystem/FileStream.html#83745">
		<title>flash/9.0/ActionScriptLangRefV3/flash/filesystem/FileStream.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filesystem/FileStream.html#83745</link>
		<description>@Zimmen:&lt;br&gt;&lt;br&gt;That can be the case, depending on the class. Most classes can be serialized, but some can't. The most notable exception is display objects -- they can't be serialized using writeObject() (or more correctly, they can be serialized, but they come back as generic objects with as many properties as possible). The reason for this is because a lot of the state of a display object -- things like whether it contains children, whether it's on the stage or not, whether it has content drawn into it via the drawing api -- is a characteristic of the state of the object at a moment in time and depends on external factors that can't be guaranteed at deserialization time.&lt;br&gt;&lt;br&gt;Having said that, as long as your custom class doesn't refer to an object that can't be deserialized, it should be able to be saved and recreated using writeObject() and readObject(). However, in order to do so you must first register an alias for the class using the flash.net.registerClassAlias() method. You must register the alias before serializing the object, and also you must register the same alias for the same class before deserializing the object. That alias is what the runtime uses to match the data to your custom class.</description>
		<dc:creator>adbe_paul</dc:creator>
		<dc:type>1 0</dc:type>
		<dc:date>2008-05-06T13:45:53</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filesystem/FileStream.html#83723">
		<title>flash/9.0/ActionScriptLangRefV3/flash/filesystem/FileStream.html</title>
		<link>http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/filesystem/FileStream.html#83723</link>
		<description>Using writeObject to write a cusom class to disk does not work like expected. it cannot convert the object that gets read by readObject back to it's original type and it cannot access private properties using a getter when there is no setter available. It looks as if the writeObject tries to do a simple copy of the Class instance into an Object instance before writing it to disk.</description>
		<dc:creator>Zimmen</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2008-05-06T05:20:38</dc:date>
	</item>
	</rdf:RDF>

