Hi,

You should serialize classes using registerClassAlias() to get it as a value
object. Very nicely explained blog:

http://tush.wordpress.com/2007/07/08/actionscript-3-serializing-classes-using-registerclassalias/

Regards,
Venkat
www.venkatv.com


On Sun, Feb 8, 2009 at 7:15 PM, Lord <lore...@katamail.com> wrote:

>
> Hi,
>
> i've a problem with shared object..can you help me?
>
> i've created a custom value object class..a simple class with private
> properties and setters/getters methods to retrieve them..
>
> 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't get value properties of value object class...
> Any suggestions?
>
> Thanks in advance
>
> Regards Lord
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to