<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: ActionScript 3: Serializing Classes using registerClassAlias</title>
	<atom:link href="http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/feed/" rel="self" type="application/rss+xml" />
	<link>http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/</link>
	<description>My blog on Flash, Flex, eLearning</description>
	<lastBuildDate>Sun, 08 Nov 2009 20:03:18 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: caubekimo</title>
		<link>http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-3170</link>
		<dc:creator>caubekimo</dc:creator>
		<pubDate>Sat, 14 Mar 2009 09:23:09 +0000</pubDate>
		<guid isPermaLink="false">http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-3170</guid>
		<description>tks a lot!!!
i really need this, &#039;cause i&#039;m doing the flash remoting things, and was stuck in the class mapping...

thank you!</description>
		<content:encoded><![CDATA[<p>tks a lot!!!<br />
i really need this, &#8217;cause i&#8217;m doing the flash remoting things, and was stuck in the class mapping&#8230;</p>
<p>thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lorenzo</title>
		<link>http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-3142</link>
		<dc:creator>Lorenzo</dc:creator>
		<pubDate>Mon, 09 Feb 2009 18:21:29 +0000</pubDate>
		<guid isPermaLink="false">http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-3142</guid>
		<description>Hi, nice blog..

can i ask you a question?

i&#039;ve created a custom value object class..a simple class with private properties and getters methods to retrieve them, like your person class.

then i created an array collection where each item is a value object.
then i have a shared object manager that looks like this:

package util{

    import flash.net.SharedObject;

    import mx.collections.ArrayCollection;

    public class SharedObjectApplicationManager {

        private var mySO:SharedObject;
        private var ac:ArrayCollection;
        private var lsoType:String;

        public function SharedObjectApplicationManager(s:String) {
            init(s);
        }

        private function init(s:String):void {
            mySO = SharedObject.getLocal(s);
            if (getf()) {
               getf();
            }
        }

        public function getf():ArrayCollection {
            return mySO.data.arrayc;
        }

        private function adda(array:ArrayCollection):void {
            mySO.data.arrayc = new ArrayCollection();
            mySO.data.arrayc = array;
            mySO.flush();
        }
    }
}

so when i try to get arraycollection with getf method i get an arraycollection of generic objects...not with value objects..in this manner i can&#039;t get value properties of value object class.

so i would use registerClassAlias(&quot;Info&quot;, WindowInfo) where WindowInfo is the VO..but where?

the architecture of my app is:

-main application (verify the shared object, if full then call a public function of canvas to create windows with specific parameters saved in windowinfo class)
--canvas (contains one or more windows)

any suggestions?

thanks in advance 

Regards Lorenzo</description>
		<content:encoded><![CDATA[<p>Hi, nice blog..</p>
<p>can i ask you a question?</p>
<p>i&#8217;ve created a custom value object class..a simple class with private properties and getters methods to retrieve them, like your person class.</p>
<p>then i created an array collection where each item is a value object.<br />
then i have a shared object manager that looks like this:</p>
<p>package util{</p>
<p>    import flash.net.SharedObject;</p>
<p>    import mx.collections.ArrayCollection;</p>
<p>    public class SharedObjectApplicationManager {</p>
<p>        private var mySO:SharedObject;<br />
        private var ac:ArrayCollection;<br />
        private var lsoType:String;</p>
<p>        public function SharedObjectApplicationManager(s:String) {<br />
            init(s);<br />
        }</p>
<p>        private function init(s:String):void {<br />
            mySO = SharedObject.getLocal(s);<br />
            if (getf()) {<br />
               getf();<br />
            }<br />
        }</p>
<p>        public function getf():ArrayCollection {<br />
            return mySO.data.arrayc;<br />
        }</p>
<p>        private function adda(array:ArrayCollection):void {<br />
            mySO.data.arrayc = new ArrayCollection();<br />
            mySO.data.arrayc = array;<br />
            mySO.flush();<br />
        }<br />
    }<br />
}</p>
<p>so when i try to get arraycollection with getf method i get an arraycollection of generic objects&#8230;not with value objects..in this manner i can&#8217;t get value properties of value object class.</p>
<p>so i would use registerClassAlias(&#8220;Info&#8221;, WindowInfo) where WindowInfo is the VO..but where?</p>
<p>the architecture of my app is:</p>
<p>-main application (verify the shared object, if full then call a public function of canvas to create windows with specific parameters saved in windowinfo class)<br />
&#8211;canvas (contains one or more windows)</p>
<p>any suggestions?</p>
<p>thanks in advance </p>
<p>Regards Lorenzo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-2801</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 24 Oct 2008 04:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-2801</guid>
		<description>Currently trying to modify the example by using a persistent server side object instead of a local one. Should SharedObject.data.(customClass) be used, or is there a better way?</description>
		<content:encoded><![CDATA[<p>Currently trying to modify the example by using a persistent server side object instead of a local one. Should SharedObject.data.(customClass) be used, or is there a better way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel</title>
		<link>http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-2797</link>
		<dc:creator>Daniel</dc:creator>
		<pubDate>Fri, 24 Oct 2008 01:04:10 +0000</pubDate>
		<guid isPermaLink="false">http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-2797</guid>
		<description>figured it out, had seperate main.as with:
=============================
package {
	import flash.display.Sprite;
	
	public class main extends Sprite {
		public function main():void {
			var mySoExample:soExample = new soExample(this);
		}
	}

}
==========================
as I&#039;m sure you know  :)</description>
		<content:encoded><![CDATA[<p>figured it out, had seperate main.as with:<br />
=============================<br />
package {<br />
	import flash.display.Sprite;</p>
<p>	public class main extends Sprite {<br />
		public function main():void {<br />
			var mySoExample:soExample = new soExample(this);<br />
		}<br />
	}</p>
<p>}<br />
==========================<br />
as I&#8217;m sure you know  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zach</title>
		<link>http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-601</link>
		<dc:creator>Zach</dc:creator>
		<pubDate>Thu, 30 Aug 2007 14:41:07 +0000</pubDate>
		<guid isPermaLink="false">http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-601</guid>
		<description>Thanks a lot! Really nice! I am gonna be coming back to this site!</description>
		<content:encoded><![CDATA[<p>Thanks a lot! Really nice! I am gonna be coming back to this site!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tushar</title>
		<link>http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-214</link>
		<dc:creator>Tushar</dc:creator>
		<pubDate>Thu, 19 Jul 2007 16:47:37 +0000</pubDate>
		<guid isPermaLink="false">http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-214</guid>
		<description>Thanks Debabrata!</description>
		<content:encoded><![CDATA[<p>Thanks Debabrata!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Debabrata</title>
		<link>http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-213</link>
		<dc:creator>Debabrata</dc:creator>
		<pubDate>Thu, 19 Jul 2007 15:31:27 +0000</pubDate>
		<guid isPermaLink="false">http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/#comment-213</guid>
		<description>Nice blog!</description>
		<content:encoded><![CDATA[<p>Nice blog!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
