Re: [Flashcoders] serialize object
you should look at this one. this could help you. http://www.multidmedia.com/software/zinc/ Am 26.10.2005 um 11:55 schrieb Julián Atienza: --- I'd love to know how to desiarlize or serialize sharedobject to txt files but... how can u write txt files in flash??? :O :O :O I'm near to newbie but... i'm working in a StandAlone-Project with flash and this is one of my questions (neck-bottle) -> how can i store information in disk??? if i could be able to serialize/desiarilize sharedObjects to disk could be my solution!!! thanks! --- __ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders plugisto ... eugen pflüger alexanderstr. 109 70180 stuttgart fon +49.711.6739797 mobil +49.177.6428272 e-mail [EMAIL PROTECTED] ... http://www.plugisto.net http://www.lifeperformance.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] serialize object
--- I'd love to know how to desiarlize or serialize sharedobject to txt files but... how can u write txt files in flash??? :O :O :O I'm near to newbie but... i'm working in a StandAlone-Project with flash and this is one of my questions (neck-bottle) -> how can i store information in disk??? if i could be able to serialize/desiarilize sharedObjects to disk could be my solution!!! thanks! --- __ Renovamos el Correo Yahoo! Nuevos servicios, más seguridad http://correo.yahoo.es ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] serialize object
Depends if your using as3it has it built in :o) Cam > On 10/25/05, Florian Metzger - Neodelight <[EMAIL PROTECTED]> wrote: > > i want to serialize the shared object and dump it into a text file and later > > deserialze the shared object from that text file. > > does anybody have a script or class for that ? > > Here's two different ones: > > http://www.designvox.com/%7Eborys/JSON/JSON.as from > http://www.crockford.com/JSON/index.html > > And then this one, which is compatible with php's serialize() : > http://sourceforge.net/projects/serializerclass/ > > -David R > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > -- ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] serialize object
Florian Metzger - Neodelight wrote: i want to serialize the shared object and dump it into a text file and later deserialze the shared object from that text file. does anybody have a script or class for that ? Actually, MM provides a fairly decent serializer: mx.data.binding.ObjectDumper; Here's a simple use case in Actionscript 2.0: import mx.data.binding.ObjectDumper; myObj = {a:3.14, b:'test string', c:false}; myObj.d = [1, 2, 3, 4]; myObj.e = []; myObj.e['test'] = new Date(); trace(ObjectDumper.toString(myObj)); The output is very similar to Crockford's JSON [1], it shouldn't be very difficult to write a deserializer to parse the result and convert it back into objects. Alternatively, you can go with an XML format typed through a DTD, which, depending on your use cases and server-side integration needs, might be more desirable than using the JSON format. Jim ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] serialize object
On 10/25/05, Florian Metzger - Neodelight <[EMAIL PROTECTED]> wrote: > i want to serialize the shared object and dump it into a text file and later > deserialze the shared object from that text file. > does anybody have a script or class for that ? Here's two different ones: http://www.designvox.com/%7Eborys/JSON/JSON.as from http://www.crockford.com/JSON/index.html And then this one, which is compatible with php's serialize() : http://sourceforge.net/projects/serializerclass/ -David R ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] serialize object
Take a look at the XML-RPC standard. It could give you some ideas for serializing object hierarchies into text. It only supports common data types since it supposed to transcend languages, but you could build in some smarter class instantiation. http://xmlrpc.com http://sf.net/projects/xmlrpcflash Matt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Florian Metzger - Neodelight Sent: Tuesday, October 25, 2005 11:50 AM To: flashcoders Subject: [Flashcoders] serialize object i want to serialize the shared object and dump it into a text file and later deserialze the shared object from that text file. does anybody have a script or class for that ? if not, i'll write one... does anybody else need stuff like that ? flow motion ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] serialize object
i want to serialize the shared object and dump it into a text file and later deserialze the shared object from that text file. does anybody have a script or class for that ? if not, i'll write one... does anybody else need stuff like that ? flow motion ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders