[EMAIL PROTECTED] Mon Apr 19 07:44:27 2004 Return-Path: <[EMAIL PROTECTED]> X-Sender: [EMAIL PROTECTED] X-Apparently-To: flexcoders@yahoogroups.com Received: (qmail 45553 invoked from network); 19 Apr 2004 14:44:26 -0000 Received: from unknown (66.218.66.166) by m6.grp.scd.yahoo.com with QMQP; 19 Apr 2004 14:44:26 -0000 Received: from unknown (HELO relaymaster.rapidns.com) (209.120.245.58) by mta5.grp.scd.yahoo.com with SMTP; 19 Apr 2004 14:44:25 -0000 Received: from arckid (unknown [220.224.53.155]) by relaymaster.rapidns.com (Postfix) with ESMTP id D035449538 for <flexcoders@yahoogroups.com>; Mon, 19 Apr 2004 10:43:23 -0400 (EDT) To: <flexcoders@yahoogroups.com> Date: Mon, 19 Apr 2004 20:14:14 +0530 Organization: Avinashi Systems Pvt. Ltd. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0268_01C4264A.E872F5A0" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Thread-Index: AcQmF/phy/MlOkX1TZGPsrxj/3I2WAABMoPw In-Reply-To: <[EMAIL PROTECTED]> Message-Id: <[EMAIL PROTECTED]> X-eGroups-Remote-IP: 209.120.245.58 From: "Ashvin Savani (arckid)" <[EMAIL PROTECTED]> Reply-To: <[EMAIL PROTECTED]> Subject: RE: [flexcoders] Use Remoting in AS Class X-Yahoo-Group-Post: member; u=113547105 X-Yahoo-Profile: aashu777
------=_NextPart_000_0268_01C4264A.E872F5A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Okay will wait for it . :-) Regards, Ashvin Savani (arckid) Team Macromedian ("Flash" + (" MX" || "Com" || " Remoting")) && (PHP && MySQL) Developer _____ From: Brian Deitte [mailto:[EMAIL PROTECTED] Sent: Monday, April 19, 2004 7:33 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] Use Remoting in AS Class This is probably because the version of Flash Remoting in Flex is substantially different from the last released version. This newer version has full support for AS2. There is no need for custom AS2 wrappers around this code. There will also be an article being written now about how to use Flash Remoting from AS. Until then, just check out the asdocs or the RemoteObject tag. -Brian -----Original Message----- From: Ashvin Savani (arckid) [mailto:[EMAIL PROTECTED] Sent: Sunday, April 18, 2004 5:08 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use Remoting in AS Class I am getting these errors ... Error /test/org/amfphp/remoting/NetServices.as Unresolved symbol, __Packages.NetDebug, required by __Packages.org.amfphp.remoting.NetServices Error /test/org/amfphp/remoting/NetServiceProxy.as Unresolved symbol, __Packages.NetServices, required by __Packages.org.amfphp.remoting.NetServiceProxy Error /test/org/amfphp/remoting/NetServiceProxyResponder.as Unresolved symbol, __Packages.NetServices, required by __Packages.org.amfphp.remoting.NetServiceProxyResponder Regards, Ashvin Savani (arckid) Team Macromedian ("Flash" + (" MX" || "Com" || " Remoting")) && (PHP && MySQL) Developer _____ From: Brian LeRoux [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 4:16 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use Remoting in AS Class I did use it. Check out the getService method. -----Original Message----- From: Ashvin Savani (arckid) [mailto:[EMAIL PROTECTED] Sent: April 16, 2004 3:29 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use Remoting in AS Class Thanks a lot for code hint but ... look at this ... function ServiceDelegate( servicePath:String, serviceName:String ) { path = servicePath; name = serviceName; gateway = NetServices.createGatewayConnection( path ); }; How to add service to gateway? In this code you just assigned name = serviceName but not used in code ... Say my service name is "user" and method is "getUserList" then can you give me little code sample? I can understand responders and those things ... but just don't know how to syntax them in AS2. Regards, Ashvin Savani (arckid) Team Macromedian ("Flash" + (" MX" || "Com" || " Remoting")) && (PHP && MySQL) Developer _____ From: Brian LeRoux [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 3:51 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use Remoting in AS Class Ah.. org.amfphp.remoting is Justin Watkin's AS2 implementation of the NetServices library. So, no, Aral's technique doesn't apply to this case. Aral's technique is a bit of a kludge to allow using the AS1 Macromedia NetServices implementation within AS2 classes. If you want to use org.amfphp.remoting then do something like this (untested / off the top of my head): import org.amfphp.remoting.* class ServiceDelegate { private var path:String; private var name:String; private var gateway:String; function ServiceDelegate( servicePath:String, serviceName:String ) { path = servicePath; name = serviceName; gateway = NetServices.createGatewayConnection( path ); }; public function InvokeSomeRemoteMethod():Void { getService().RemoteMethodName(); }; private function RemoteMethodName_Result( resultReturnVar:Array ):void { // normally I would dispatch an event here.. }; private function getService():Object { return gateway.getService( name, this ); }; }; -----Original Message----- From: Ashvin Savani (arckid) [mailto:[EMAIL PROTECTED] Sent: April 16, 2004 2:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use Remoting in AS Class On FlashAnt they just loaded NetServices and NetDebug in class nothing else ... so I want to know that is it supports org.amfphp.remoting.* classes? Regards, Ashvin Savani (arckid) Team Macromedian ("Flash" + (" MX" || "Com" || " Remoting")) && (PHP && MySQL) Developer _____ From: Brian LeRoux [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 2:41 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use Remoting in AS Class Not sure I understand..? What supports Justin's components? -----Original Message----- From: Ashvin Savani (arckid) [mailto:[EMAIL PROTECTED] Sent: April 16, 2004 1:58 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use Remoting in AS Class It supports Justin components? Regards, Ashvin Savani (arckid) Team Macromedian ("Flash" + (" MX" || "Com" || " Remoting")) && (PHP && MySQL) Developer -----Original Message----- From: Brian LeRoux [mailto:[EMAIL PROTECTED] Sent: Saturday, April 17, 2004 2:06 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Use Remoting in AS Class Aral's is probably the best technique, supported anyhow, until MM releases the AS2 update of the NetServices library. Justin Watkins and Joey Lott both have AS2 ports as well. http://www.flashant.org/index.php?p=13 <http://www.flashant.org/index.php?p=13&c=1> &c=1 Yahoo! Groups Links _____ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! <http://docs.yahoo.com/info/terms/> Terms of Service. ------=_NextPart_000_0268_01C4264A.E872F5A0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" xmlns=3D"http://ww= w.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii"> <meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <title>Message</title> <o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" name=3D"time"/> <o:SmartTagType namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" name=3D"date"/> <!--[if !mso]> <style> st1\:*{behavior:url(#default#ieooui) } </style> <![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:Wingdings; panose-1:5 0 0 0 0 0 0 0 0 0;} @font-face {font-family:SimSun; panose-1:2 1 6 0 3 1 1 1 1 1;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:Verdana; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:"[EMAIL PROTECTED]"; panose-1:2 1 6 0 3 1 1 1 1 1;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:blue; text-decoration:underline;} p.MsoPlainText, li.MsoPlainText, div.MsoPlainText {mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; font-size:12.0pt; font-family:"Times New Roman";} tt {font-family:"Courier New";} span.EmailStyle19 {mso-style-type:personal; font-family:Arial; color:navy;} span.EmailStyle20 {mso-style-type:personal; font-family:Arial; color:#993366;} span.EmailStyle21 {mso-style-type:personal; font-family:Arial; color:#003300;} span.reference {font-weight:bold;} span.EmailStyle24 {mso-style-type:personal-reply; font-family:Arial; color:olive;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:1716462791; mso-list-template-ids:1469241348;} @list l0:level1 {mso-level-number-format:bullet; mso-level-text:\F0B7; mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in; mso-ansi-font-size:10.0pt; font-family:Symbol;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style> </head> <body lang=3DEN-US link=3Dblue vlink=3Dblue> <div class=3DSection1> <p class=3DMsoNormal><font size=3D2 color=3Dolive face=3DArial><span style= =3D'font-size: 10.0pt;font-family:Arial;color:olive'>Okay will wait for it … </span>= </font><font size=3D2 color=3Dolive face=3DWingdings><span style=3D'font-size:10.0pt;fon= t-family: Wingdings;color:olive'>J</span></font><font size=3D2 color=3Dolive face=3DA= rial><span style=3D'font-size:10.0pt;font-family:Arial;color:olive'><o:p></o:p></span>= </font></p> <p class=3DMsoNormal><font size=3D2 color=3Dolive face=3DArial><span style= =3D'font-size: 10.0pt;font-family:Arial;color:olive'><o:p> </o:p></span></font></p> <div> <p class=3DMsoPlainText style=3D'margin:0in;margin-bottom:.0001pt'><font si= ze=3D2 color=3Dolive face=3DVerdana><span style=3D'font-size:10.0pt;font-family:Ve= rdana; color:olive'>Regards,<br> <br> Ashvin Savani (arckid) <br> <br> Team Macromedian<br> ("Flash" + (" MX" || "Com" || " Remoting")) && (PHP && MySQL) Developer</span></font><= o:p></o:p></p> </div> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font siz= e=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span style=3D'font-si= ze:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Brian De= itte [mailto:[EMAIL PROTECTED] <br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Monday, <st1:date Year= =3D"2004" Day=3D"19" Month=3D"4" ls=3D"trans" w:st=3D"on">April 19, 2004</st1:date> <= st1:time Minute=3D"33" Hour=3D"19" w:st=3D"on">7:33 PM</st1:time><br> <b><span style=3D'font-weight:bold'>To:</span></b> '[EMAIL PROTECTED] com'<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [flexcoders] Us= e Remoting in AS Class</span></font><o:p></o:p></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'><o:p> </o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span style= =3D'font-size: 10.0pt;font-family:Arial;color:blue'>This is probably because the version o= f Flash Remoting in Flex is substantially different from the last released version. </span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span style= =3D'font-size: 10.0pt;font-family:Arial;color:blue'>This newer version has full support fo= r AS2. There is no need for custom AS2 wrappers around this code. There will also be an article being written now about how to use Flash Remo= ting from AS. Until then, just check out the asdocs or the RemoteObject tag. -Brian</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <blockquote style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0= in 0in 4.0pt; margin-left:3.75pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 face=3DT= ahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br= > <b><span style=3D'font-weight:bold'>From:</span></b> Ashvin Savani (arckid) [mailto:[EMAIL PROTECTED] <br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Sunday, <st1:date Year= =3D"2004" Day=3D"18" Month=3D"4" ls=3D"trans" w:st=3D"on">April 18, 2004</st1:date> <= st1:time Minute=3D"08" Hour=3D"5" w:st=3D"on">5:08 AM</st1:time><br> <b><span style=3D'font-weight:bold'>To:</span></b> [EMAIL PROTECTED] om<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [flexcoders] Us= e Remoting in AS Class</span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D2 color=3D"#003300" face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:#003300'>I am getting the= se errors ...<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3D"#003300" face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:#003300'><o:p> </o:p= ></span></font></p> <p class=3DMsoNormal><span class=3Dheader><font size=3D3 face=3DTahoma><spa= n style=3D'font-size:12.0pt;font-family:Tahoma'>Error </span></font></span><s= pan class=3Dreference><b><font size=3D2 face=3DTahoma><span style=3D'font-size:= 10.0pt; font-family:Tahoma'>/test/org/amfphp/remoting/NetServices.as</span></font><= /b></span><font size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>= <o:p></o:p></span></font></p> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 face=3DT= ahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>Unresolved symbol, __Packages.NetDebug, required by __Packages.org.amfphp.remoting.NetServices= <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DTahoma><span style=3D'font-size:= 10.0pt; font-family:Tahoma'><br> </span></font><span class=3Dheader><font face=3DTahoma><span style=3D'font-= family: Tahoma'>Error </span></font></span><span class=3Dreference><b><font size=3D= 2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>/test/org= /amfphp/remoting/NetServiceProxy.as</span></font></b></span><font size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>= <o:p></o:p></span></font></p> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 face=3DT= ahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>Unresolved symbol, __Packages.NetServices, required by __Packages.org.amfphp.remoting.NetServiceProxy<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DTahoma><span style=3D'font-size:= 10.0pt; font-family:Tahoma'><br> </span></font><span class=3Dheader><font face=3DTahoma><span style=3D'font-= family: Tahoma'>Error </span></font></span><span class=3Dreference><b><font size=3D= 2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>/test/org= /amfphp/remoting/NetServiceProxyResponder.as</span></font></b></span><font size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>= <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 face=3DTahoma><span style=3D'font-size:= 10.0pt; font-family:Tahoma'>Unresolved symbol, __Packages.NetServices, required by __Packages.org.amfphp.remoting.NetServiceProxyResponder<o:p></o:p></span></= font></p> <p class=3DMsoNormal><font size=3D2 color=3D"#003300" face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:#003300'><o:p> </o:p= ></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3D"#003300" face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:#003300'><o:p> </o:p= ></span></font></p> <div> <p class=3DMsoPlainText style=3D'margin:0in;margin-bottom:.0001pt'><font si= ze=3D2 color=3D"#003300" face=3DVerdana><span style=3D'font-size:10.0pt;font-famil= y:Verdana; color:#003300'>Regards,<br> <br> Ashvin Savani (arckid) <br> <br> Team Macromedian<br> ("Flash" + (" MX" || "Com" || " Remoting= ")) && (PHP && MySQL) Developer</span></font><o:p></o:p></p> </div> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font siz= e=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <hr size=3D2 width=3D"100%" align=3Dcenter tabIndex=3D-1> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span style=3D'font-si= ze:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Brian Le= Roux [mailto:[EMAIL PROTECTED] <br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Saturday, <st1:date Year=3D"2004" Day=3D"17" Month=3D"4" ls=3D"trans" style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ieta= g.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st=3D"on">April 17, 2004</st1:date> <st1:time Minute=3D"16" Hour=3D"4" w:= st=3D"on">4:16 AM</st1:time><br> <b><span style=3D'font-weight:bold'>To:</span></b> [EMAIL PROTECTED] om<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [flexcoders] Us= e Remoting in AS Class</span></font><o:p></o:p></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'><o:p> </o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span style= =3D'font-size: 10.0pt;font-family:Arial;color:blue'>I did use it. Check out the getService= method.</span></font><o:p></o:p></p> </div> <blockquote style=3D'margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'= > <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 face=3DT= ahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br= > <b><span style=3D'font-weight:bold'>From:</span></b> Ashvin Savani (arckid) [mailto:[EMAIL PROTECTED] <br> <b><span style=3D'font-weight:bold'>Sent:</span></b> <st1:date Year=3D"2004= " Day=3D"16" Month=3D"4" ls=3D"trans" style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ieta= g.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st=3D"on">April 16, 2004</st1:date> <st1:time Minute=3D"29" Hour=3D"15" w= :st=3D"on">3:29 PM</st1:time><br> <b><span style=3D'font-weight:bold'>To:</span></b> [EMAIL PROTECTED] om<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [flexcoders] Us= e Remoting in AS Class</span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D2 color=3D"#993366" face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:#993366'>Thanks a lot for= code hint but ... look at this ...<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3D"#993366" face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:#993366'><o:p> </o:p= ></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>function ServiceDelegate( servicePath:String, serviceName:String ) </span></font><o:= p></o:p></p> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; {</span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; path =3D servicePath; &nb= sp; </span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; name =3D serviceName;</span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; gateway =3D NetServices.createGatewayConnection( path );</span></font><o:p>= </o:p></p> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; };</span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> <o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3D"#993366" face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:#993366'>How to add servi= ce to gateway? In this code you just assigned name =3D serviceName but not used i= n code ...<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3D"#993366" face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:#993366'><o:p> </o:p= ></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3D"#993366" face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:#993366'>Say my service n= ame is "user" and method is "getUserList" then can you give me little code sample? I can understand responders and those things ... but ju= st don't know how to syntax them in AS2.<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3D"#993366" face=3DArial><span style=3D'font-size:10.0pt;font-family:Arial;color:#993366'><o:p> </o:p= ></span></font></p> <div> <p class=3DMsoPlainText style=3D'margin:0in;margin-bottom:.0001pt'><font si= ze=3D2 color=3D"#993366" face=3DVerdana><span style=3D'font-size:10.0pt;font-famil= y:Verdana; color:#993366'>Regards,<br> <br> Ashvin Savani (arckid) <br> <br> Team Macromedian<br> ("Flash" + (" MX" || "Com" || " Remoting")) && (PHP && MySQL) Developer</span></font><= o:p></o:p></p> </div> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font siz= e=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <hr size=3D2 width=3D"100%" align=3Dcenter tabIndex=3D-1> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span style=3D'font-si= ze:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Brian Le= Roux [mailto:[EMAIL PROTECTED] <br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Saturday, <st1:date Year=3D"2004" Day=3D"17" Month=3D"4" ls=3D"trans" style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ieta= g.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st=3D"on">April 17, 2004</st1:date> <st1:time Minute=3D"51" Hour=3D"3" w:= st=3D"on">3:51 AM</st1:time><br> <b><span style=3D'font-weight:bold'>To:</span></b> [EMAIL PROTECTED] om<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [flexcoders] Us= e Remoting in AS Class</span></font><o:p></o:p></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'><o:p> </o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span style= =3D'font-size: 10.0pt;font-family:Arial;color:blue'>Ah..</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style= =3D'font-size: 10.0pt;font-family:Arial;color:navy'>org.amfphp.remoting is Justin Watkin's= AS2 implementation of the NetServices library. So, no, Aral's technique doesn't apply to this case. Aral's technique is a bit of a kludge to allow using th= e AS1 Macromedia NetServices implementation within AS2 classes. If you want t= o use org.amfphp.remoting then do something like this (untested / off the top= of my head):</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>import org.amfphp.remoting.*</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>class ServiceDelegate</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>{</span></f= ont><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; private var path:String;</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; private var name:String;</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; private var gateway:String;</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; function ServiceDelegate( servicePath:String, serviceName:String ) </span><= /font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; {</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; path =3D servicePath; &nb= sp; </span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; name =3D serviceName;</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; gateway =3D NetServices.createGatewayConnection( path );</span></font><o:p>= </o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; };</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> </span></font><font size= =3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-fami= ly:"Courier New"; color:gray'>public function InvokeSomeRemoteMethod():Void</span></font><o:p= ></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> </span></font><font size= =3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-fami= ly:"Courier New"; color:gray'>{</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; getService().RemoteMethodName();</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; };</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> </span></font><font size= =3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-fami= ly:"Courier New"; color:gray'>private function RemoteMethodName_Result( resultReturnVar:Array ):void</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> </span></font><font size= =3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-fami= ly:"Courier New"; color:gray'>{</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; // normally I would dispatch an event here..</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; };</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; private function getService():Object</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; {</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>  = ; return gateway.getService( name, this );</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Times New Roman"><= span style=3D'font-size:10.0pt;color:gray'> &= nbsp; </span></font><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;= font-family: "Courier New";color:gray'>};</span></font><o:p></o:p></p> </div> <div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'> <o:p></o:p></span></font></p> </div> <div> <p class=3DMsoNormal><font size=3D2 color=3Dgray face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New";color:gray'>};</span></= font><o:p></o:p></p> </div> <blockquote style=3D'margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'= > <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 face=3DT= ahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br= > <b><span style=3D'font-weight:bold'>From:</span></b> Ashvin Savani (arckid) [mailto:[EMAIL PROTECTED] <br> <b><span style=3D'font-weight:bold'>Sent:</span></b> <st1:date Year=3D"2004= " Day=3D"16" Month=3D"4" ls=3D"trans" style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ieta= g.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st=3D"on">April 16, 2004</st1:date> <st1:time Minute=3D"27" Hour=3D"14" w= :st=3D"on">2:27 PM</st1:time><br> <b><span style=3D'font-weight:bold'>To:</span></b> [EMAIL PROTECTED] om<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [flexcoders] Us= e Remoting in AS Class</span></font><o:p></o:p></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style= =3D'font-size: 10.0pt;font-family:Arial;color:navy'>On FlashAnt they just loaded NetServic= es and NetDebug in class nothing else ... so I want to know that is it support= s org.amfphp.remoting.* classes?<o:p></o:p></span></font></p> <p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span style= =3D'font-size: 10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p> <div> <p class=3DMsoPlainText style=3D'margin:0in;margin-bottom:.0001pt'><font si= ze=3D2 color=3Dnavy face=3DVerdana><span style=3D'font-size:10.0pt;font-family:Ver= dana; color:navy'>Regards,<br> <br> Ashvin Savani (arckid) <br> <br> Team Macromedian<br> ("Flash" + (" MX" || "Com" || " Remoting")) && (PHP && MySQL) Developer</span></font><= o:p></o:p></p> </div> <div> <div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font siz= e=3D3 face=3D"Times New Roman"><span style=3D'font-size:12.0pt'> <hr size=3D2 width=3D"100%" align=3Dcenter tabIndex=3D-1> </span></font></div> <p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span style=3D'font-si= ze:10.0pt; font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=3D2 face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'> Brian Le= Roux [mailto:[EMAIL PROTECTED] <br> <b><span style=3D'font-weight:bold'>Sent:</span></b> Saturday, <st1:date Year=3D"2004" Day=3D"17" Month=3D"4" ls=3D"trans" style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ieta= g.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st=3D"on">April 17, 2004</st1:date> <st1:time Minute=3D"41" Hour=3D"2" w:= st=3D"on">2:41 AM</st1:time><br> <b><span style=3D'font-weight:bold'>To:</span></b> [EMAIL PROTECTED] om<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [flexcoders] Us= e Remoting in AS Class</span></font><o:p></o:p></p> </div> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'><o:p> </o:p></span></font></p> <div> <p class=3DMsoNormal><font size=3D2 color=3Dblue face=3DArial><span style= =3D'font-size: 10.0pt;font-family:Arial;color:blue'>Not sure I understand..? What supports Justin's components?</span></font><o:p></o:p></p> </div> <blockquote style=3D'margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt'= > <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><font size=3D2 face=3DT= ahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>-----Original Message-----<br= > <b><span style=3D'font-weight:bold'>From:</span></b> Ashvin Savani (arckid) [mailto:[EMAIL PROTECTED] <br> <b><span style=3D'font-weight:bold'>Sent:</span></b> <st1:date Year=3D"2004= " Day=3D"16" Month=3D"4" ls=3D"trans" style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ieta= g.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st=3D"on">April 16, 2004</st1:date> <st1:time Minute=3D"58" Hour=3D"13" w= :st=3D"on">1:58 PM</st1:time><br> <b><span style=3D'font-weight:bold'>To:</span></b> [EMAIL PROTECTED] om<br> <b><span style=3D'font-weight:bold'>Subject:</span></b> RE: [flexcoders] Us= e Remoting in AS Class</span></font><o:p></o:p></p> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><tt><font size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>It supports Justin components?</span></font></tt><font size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt;font-family:"Courier New"'><br> <br> <tt><font face=3D"Courier New">Regards, </font></tt><br> <br> <tt><font face=3D"Courier New">Ashvin Savani (arckid) </font></tt><br> <br> <tt><font face=3D"Courier New">Team Macromedian</font></tt><br> <tt><font face=3D"Courier New">("Flash" + (" MX" || "Com" || " Remoting")) && (PHP && MySQL= ) Developer</font></tt><br> <br> <br> <tt><font face=3D"Courier New">-----Original Message-----</font></tt><br> <tt><font face=3D"Courier New">From: Brian LeRoux [mailto:[EMAIL PROTECTED] </font></tt><br> <tt><font face=3D"Courier New">Sent: Saturday, <st1:date Year=3D"2004" Day= =3D"17" Month=3D"4" ls=3D"trans" style=3D"BACKGROUND-POSITION: left bottom; BACKGROUND-IMAGE: url(res://ieta= g.dll/#34/#1001); BACKGROUND-REPEAT: repeat-x" w:st=3D"on">April 17, 2004</st1:date> <st1:time Minute=3D"06" Hour=3D"2" w:= st=3D"on">2:06 AM</st1:time></font></tt><br> <tt><font face=3D"Courier New">To: flexcoders@yahoogroups.com</font></tt><b= r> <tt><font face=3D"Courier New">Subject: RE: [flexcoders] Use Remoting in AS= Class</font></tt><br> <br> <tt><font face=3D"Courier New">Aral's is probably the best technique, suppo= rted anyhow, until MM</font></tt><br> <tt><font face=3D"Courier New">releases the AS2 update of the NetServices library. Justin Watkins and</font></tt><br> <tt><font face=3D"Courier New">Joey Lott both have AS2 ports as well.</font= ></tt><br> <br> <tt><font face=3D"Courier New"><a href=3D"http://www.flashant.org/index.php?p=3D13&c=3D1">http://www.flas= hant.org/index.php?p=3D13&c=3D1</a></font></tt><br> <br> <br> <br> <br> <br> <br> <br> <tt><font face=3D"Courier New">Yahoo! Groups Links</font></tt><br> <br> <br> <br> <br> <br> <br> <br> </span></font><o:p></o:p></p> </blockquote> </blockquote> <p class=3DMsoNormal><tt><font size=3D2 face=3D"Courier New"><span style=3D= 'font-size: 10.0pt'><o:p> </o:p></span></font></tt></p> <p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span style=3D= 'font-size: 12.0pt'><o:p> </o:p></span></font></p> </blockquote> <p class=3DMsoNormal><tt><font size=3D2 face=3D"Courier New"><span style=3D= 'font-size: 10.0pt'><o:p> </o:p></span></font></tt></p> </blockquote> <p class=3DMsoNormal><tt><font size=3D2 face=3D"Courier New"><span style=3D= 'font-size: 10.0pt'><o:p> </o:p></span></font></tt></p> </body> </html> ------=_NextPart_000_0268_01C4264A.E872F5A0--