You don't need frames to view this website. Flash communication server. Flash mx xml socket server.
Home
Main Menu
Home
- - - - - - -
What is Palabre ?
Features
News
FAQ
Forum
DEMO
- - - - - - -
Downloads !
Browse SVN
- - - - - - -
Search
Contact Us
- - - - - - -
Sourceforge Project Page
Python
Links
Palabre on Facebook






Actionscript for Multiplayer games
 
Download Palabre Flash Xml Socket Server DOWNLOAD Download Palabre Flash Xml Socket Server FORUM Download Palabre Flash Xml Socket Server FAQ Download Palabre Flash Xml Socket Server WHAT IS IT
 



Using Palabre ? Coming here for Support ? Please consider making an (even small) donation :)
Palabre Forum  


::post new topic::
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
Code:

 user1


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
  reply | quote
Re:extracting client params within Flash - 2008/08/01 10:57 I have the same Problem ^^ :(
  reply | quote
Re:extracting client params within Flash - 2008/08/01 11:17 jihhaa :D i got it work:

example

Code:

  function Pal_On_clients(node) {          if(node.hasChildNodes()) { //example how to load custom para if(node.childNodes[p].childNodes[1].nodeName == "param") { trace(node.childNodes[p].childNodes[1].attributes['name']); trace(node.childNodes[p].childNodes[1].attributes['value']); } } }



that works fine ;)
  reply | quote
::post new topic::
SORRY, website is currently mostly broken due to software changes on the server.
Hope to fix it soon ...

In the meantime you may still download palabre or use the forum