mark_vador
Visitor
|
extracting client params within Flash - 2006/12/21 14:34
Hi there, I just started developping a multiuser flash game. I want to use the clients params function but i have some little problems getting the informations back in Flash (I'm really new to xml). I'm using 2 params, named posx and posy. when i ask in Flash, for exemple, for the fisrt user connected to the server, i put in Flash something like | Code: | trace(Mynode.childNodes[1]);
| and then I receive
| Code: | <client name="user1">
<param name="posx" value="250" />
<param name="posy" value="250" />
</client>
|
if I want to extract the name I use | Code: | Mynode.childNodes[1].attributes['name']
| and receive
But now I'd like to know how I can receive the parameters values, (250 for posx and 250 for posy in this example)
Thanks a lot if you can help me for that
|