Accessibility
Adobe
Sign in Privacy My Adobe

Flex Extension

Adobe Exchange: The new way to discover and install plug-ins, extensions and content for the Creative Suite. Get it now

AS3Serializer - value object to and from XML + CRUD

By MarioVieira.net January 14, 2011
3,107 Downloads

Rating = 00 votes


AS3Serializer - value object to and from XML + CRUD

<p>The class members:</p> <p>[Serialize] public var isPublic:Boolean;</p> <p>[Serialize] public var items:ArrayCollection = new ArrayCollection();</p> <p>public var adBanner:ByteArray; //this will not be serialized<br /> </p> <p>De/Serialize:</p> <p>Serializer.serializeValuObjectIntoXML(object);//the XML</p> <p>Serializer.deserializeXMLIntoValuObject( serializerXML );//the object<br /> </p> <p>CRUD:</p> <p>var serializer:ICRUD = new SerializerCRUD('http://localhost:8888/'); <br /> <br /> serializer.update(myColl, 1);</p> <p>serializer.destroy(VoColl, 1); <br /> </p> <p>serializer.addEventListener(PersisterEvent.ON_RETRIEVED, onRetrieved);</p> <p>serializer.retrieve(TheClass, 1);</p> <p>private function onRetrieved(e:PersisterEvent):void</p> <p>{</p> <p> var deserColl:PlaylistVoCollection = e.retrievedItem;</p> <p>}</p>

SUPPORT INFORMATION
online docs: http://blog.mariovieira.net/content/serializer/asdoc-output/ Further info: http://blog.mariovieira.net

Download

License: Open Source
Language: English, Other, Spanish
Cost: Free
Platform: AIR 1.x | Flash Player 10 | Flash Player 9
File format: Not available

Additional extension information

Author: MarioVieira.net
Author website: http://blog.mariovieira.net
Date published: January 14, 2011
Approval: None
Compatible product(s): Flex 4.0, 3.0

Reviews

0-0 of 0 reviews | Show all reviews


Add a review

(+) Please log in to submit a review