/ Published in: Other
Expand |
Embed | Plain Text
import flash.net.*; var gw:NetConnection = new NetConnection(); gw.connect("http://YOUR_SERVER/amfphp/gateway.php"); var res:Responder = new Responder(onResult, onFault); function onResult(responds:Object):void { // parse the ArrayCollection var t:Array = responds.serverInfo.initialData; for(var i:uint=0; i<t.length; i++) { trace(t[i][2]); } } function onFault(responds:Object):void { for(var i in responds) { trace(responds[i]); } } gw.call("Service.method", res);
You need to login to post a comment.
