[Zmx-cvs-commit] zmx AsyncSocket.as, 1.1.2.2, 1.1.2.3 InstantXMLHelper.as, 1.1.2.2, 1.1.2.3
Brought to you by:
sspickle
|
From: Steve S. <ssp...@us...> - 2009-09-11 13:28:28
|
Update of /cvsroot/zmx/zmx In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv21024 Modified Files: Tag: ActionScript_2-0_conversion AsyncSocket.as InstantXMLHelper.as Log Message: update ixml connection to use onConnect for compatibility with CS3 (at least) Index: InstantXMLHelper.as =================================================================== RCS file: /cvsroot/zmx/zmx/Attic/InstantXMLHelper.as,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** InstantXMLHelper.as 18 Apr 2004 13:26:18 -0000 1.1.2.2 --- InstantXMLHelper.as 11 Sep 2009 13:28:18 -0000 1.1.2.3 *************** *** 128,142 **** if (config.xmlhost != null) { - this.proxy.asyncConfigured( config ); - this.xmlc = new zmx.AsyncSocket( this ); this.xmlc.connect(this.config.xmlhost,this.config.xmlport); - var util = new zmx.XMLRPCLib(); - this.xmlc.send(util.Arg_To_XML({sender_id:this.config.sender_id})); } delete this.configHelper; } ! function send( theArgs, theMethod ) { // --- 128,153 ---- if (config.xmlhost != null) { this.xmlc = new zmx.AsyncSocket( this ); this.xmlc.connect(this.config.xmlhost,this.config.xmlport); } delete this.configHelper; } ! ! function onConnect( success ) { ! // ! // "this" is the AsyncSocket here... take care. ! // ! if (success) { ! var util = new zmx.XMLRPCLib(); ! this.xmlc.send(util.Arg_To_XML({sender_id:this.config.sender_id})); ! this.proxy.asyncConfigured( this.config ); ! } ! else ! { ! this.configFailure("Failed to connect to IXML Server."); ! } ! } ! function send( theArgs, theMethod ) { // Index: AsyncSocket.as =================================================================== RCS file: /cvsroot/zmx/zmx/Attic/AsyncSocket.as,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** AsyncSocket.as 18 Apr 2004 13:26:18 -0000 1.1.2.2 --- AsyncSocket.as 11 Sep 2009 13:28:18 -0000 1.1.2.3 *************** *** 28,31 **** --- 28,35 ---- return "ERROR! invoking method!"; } + + function onConnect( success ) { + this.parentObj.onConnect( success ); + } function onXML(theXML) { |