[Red5] [Red5 - SOLVED SUMMARY] how to ? PASS a hashtable/dictionary JAVA -> Flash ??
j d
rr404 at hotmail.fr
Fri Jul 11 03:01:43 PDT 2008
Thanks it works fine.
For the summary for people that want to pass an object hash table / Map to the as3 :
server side (JAVA):
---------------------
ObjectMap toto = new ObjectMap();
toto.put("key1","this is key one");
toto.put("keytwo","this is an other Key");
SO.setAttribute("toto", toto); //SO is the shared object
client side (as3 flash):
------------------------
// get the remote so and all the bunch.
//then :
for (var prop in so.data.toto) { trace("in TOTO object Map:"); trace("¤ "+prop+": ["+(so.data.toto[prop])+"]"); }
//outputs :
/*
¤ key1 : [this is key one]
¤ keytwo : [this is an other Key]
*/
thanks to for you quick answers again guys.
Happy red5 coding
J
From: rr404 at hotmail.frTo: red5 at osflash.orgDate: Thu, 10 Jul 2008 10:26:31 +0200Subject: Re: [Red5] how to ? PASS a hashtable/dictionary JAVA -> Flash ??
thanks, i'll try the ObjectMap JAVA object
> Date: Wed, 9 Jul 2008 22:25:06 +0300> From: vrotaru.md at gmail.com> To: red5 at osflash.org> Subject: Re: [Red5] how to ? PASS a hashtable/dictionary JAVA -> Flash ??> > On Wed, Jul 9, 2008 at 7:47 PM, j d <rr404 at hotmail.fr> wrote:> > Hi,> >> > I was wondering how to pass a dictionary from JAVA RED5 server to AS3 in> > Flash ?> >> > a dictionarry or an object.> > Use ObjectMap class from Red5.> > _______________________________________________> Red5 mailing list> Red5 at osflash.org> http://osflash.org/mailman/listinfo/red5_osflash.org
Dites-lui "Je t'aime" en direct sur Windows Live Messenger ! Téléchargez Messenger, c'est gratuit !
_________________________________________________________________
Téléchargez gratuitement des émoticônes pour pimenter vos conversations Messenger
http://specials.fr.msn.com/femmes/amour/emoticonesLove.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080711/c4e324df/attachment.html
More information about the Red5
mailing list