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::
nice - 2005/10/20 10:40 Hi,

I was searching for flash multiuser servers today and tested something like 10 of them. I didn't take palabre seriously at first because it seemed very very new, but the fact is that it is one of two that ran withouth any problems when I downloaded it and tested it. I looked at he python code and it looks very nice (in case something has to be extended and anything) I need such chat for some portal for kids and palabre (after testing a lot of them) seems best solution. When was this started? News don't have dates on, but these two forum posts seem like totally fresh ones.

best wishes, I will try to making with palabre soon and contact you again.
Janko M.

http://my-webcard.com?u=jankoM
  reply | quote
Re:nice - 2005/10/20 14:03 Hi !

I'm glad you're enjoying it !

In fact it's not really a new project. I started it two years, for a flash game project and then left it in a corner.

A year ago i put it on sourceforge but it wasn't referenced anywhere, and there was no documentation, no example, ...

And then recently i built this web site, i started documenting the code (it's still in progress ...) and creating example flash clients.

So i'm back working at it, and i'll do the few things proposed on the vote box (configuration file, startup scripts, ...)

Anyway if you use this in production, i'd be glad to hear about it.
And eventually if you add some functionnalities in the code i'd be happy to add them :)

Have a nice use !


Célio
  reply | quote
Re:nice - 2005/10/20 16:40 Is there any chance .fla can be saved as flash MX (I suppose it's MX 2003 now). I only have mx and older so I can't open it. If it is any trouble, don't bother, I will get mx 2003 somewhere.

best regards,
Janko
  reply | quote
Re:nice - 2005/10/20 21:10 Maybe i'll try to do that this week end but, I just did thoose flash clients quickly with a demo version.

But I think with this demo version I can save the fla for Flash MX
  reply | quote
Re:nice - 2005/10/22 07:07 It would really be nice. I am new in flash so having an example would help a lot. Or if you can just copy the flash code somewhere.

best wishes,
Janko M.
  reply | quote
Re:nice - 2005/10/24 17:23 Hi !

i'm sorry but apaprently with Flash 8 i can only export Fla in Flash 7 minimum.

But i have an old multi player Flash car game, with a lobby, simple chat, and game, that i developped in Flash 5 or 6.

I can send it if you want. But it's a little old and i think very messy code ... but it can help for xml parsing etc etc

(i think the server chaned a little too so some tags may be false, but not much)


otherwise i can copy paste the code of the examples, it has only a few frames ...
  reply | quote
Re:nice - 2005/10/25 12:38 I have flash MX - isn't that newer than flash 7, well I am not sure. If you copy paste the code is also good to me, whatever makes you the less trouble or work.
  reply | quote
Re:nice - 2005/10/27 12:56 No i think in order it is :
Flash 5
Flash 6 = MX
Flash 7 = MX 2004
Flash 8

But i'll copy actionscript here :


The following refers to the actionscript in PalabreFlash.fla
To get it work you will need to add variables, and textfields, ..
(like a textfield : "txtdebug" , ...)

On a frame put this code :

--------

px = new XMLSocket();

px.onConnect = function(succes)
{
if(succes) {
debug('Connected')
// do something !
} else {
debug('no connection');
}

}

function debug (msg) {

_root.txtdebug.htmlText = msg + "<br/>" +_root.txtdebug.htmlText ;
}



function x2h(msg) {
msg2='';
msg = msg.split("<");
for(p=0;p<msg.length;p++)
msg2 += msg[p]+"<";

msg2= msg2.substr(0,-4)
return msg2;
}





px.onXML = function (msg) {
/* function called when XML node is received */

var PalNode = msg.firstChild;
var PalNodeName = PalNode.nodeName;
var PalNodeValue = PalNode.firstChild.nodeValue;

/*********************
*************************
The following is important !!
It will call a function named :
Pal_On_NAME_OF_THE_NODE
you then just have to create functions to handle the different nodes

like : Pal_On_m () , Pal_On_rooms() , Pal_On_Clients ()...

***************/

ret = eval('Pal_On_'+PalNodeName)(PalNode);

/* Just debug */
debug('<font color="#007700">*'+getTimer()+'* <b>Incoming :</b> <br>'+x2h(msg.toString())+"</font>");
}


/****************
Example Pal_On_m
*/

function Pal_On_m(node) {
if(node.attributes['r'] == _root.LobbyRoom) {
nick = node.attributes['f'];
if( nick == _root.myNickName) {
nick = "<font color='#aa0000'>"+nick+"</font>";
} else {
nick = "<font color='#0000aa'>"+nick+"</font>";
}
_root.Pchat.text ='<b>['+nick+'] : </b>'+node.firstChild.nodeValue+"<br/>"+ _root.Pchat.text ;
} else {
Alert.show( node.firstChild.nodeValue,"Message from : "+node.attributes['f'], Alert.OK, null, myClickHandler, "testIcon", Alert.OK);
}
}




function Pal_On_clients(node) {

var rooms = new Array();
if(node.hasChildNodes()) {

var node_rooms = node.childNodes;

for(p=0;p<node_rooms.length;p++) {
if(node_rooms[p].nodeName == "client") {
debug(node_rooms[p].attributes['name']);
rooms.push(node_rooms[p].attributes['name']);
}
}
_root.Prooms.labels = rooms;
_root.Prooms.data = rooms;
}

}








/* Function to call in order to send XML */
function mysend(msg) {

_root.px.send(msg);
debug('<font color="#000077">*'+getTimer()+'* <b>Sending :</b><br>'+x2h(msg)+"</font><hr/>");
}



/* You will need textfields :
server_ip
and
server_port

Or just replace the vars bellow

*/

trace('Connecting : '+server_ip.text + ' '+server_port);


px.connect(server_ip.text,server_port.text);



stop();
  reply | quote
Re:nice - 2005/10/27 12:57 waou

the previous message is very messed up as no tabulation were kept.

But pasted in Flash it should look ok

You could also download a demo version of Flash 8 to open the files and copy paste code in Flash MX

Good luck !
  reply | quote
Re:nice - 2005/10/28 18:00 Thanks, I will try it. I am still on dial-up and flash 8 is 100MB so this is not an option for me. Thanks for clearing it out for me, I didn't know glash 6 is MX ... I am mixing this with MS Visual Studio I gues... insted it has .NET for MX.. :)
  reply | quote
Re:nice - 2005/10/30 10:07 It works... thaks a lot. Now I have to decide what features chat should have, it's for kids portal and I want to make few things special. I will give you link when I have it done.

best regards,
Janko M.
  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