1. Drag a remoting connector component to the stage and then delete it. 2.. Import the remoting and remoting debug classes into your library of the flash document via: Window=> Other Panels=> common libraries=>remoting. 3. In your code, look at the following code: import mx.data.components.RemotingConnector; import mx.remoting.debug.NetDebug; import mx.utils.Delegate; class projexec.ListsData extends MovieClip { // non ui components var inited:Boolean = false; var getLookupData_rc:RemotingConnector; public function init():Void { excludeUpdateColumns_array = new Array(); // non visual objects inits getLookupData_rc = new RemotingConnector(); // event listeners getLookupData_rc.addEventListener('result',Delegate.create(this,result)); getLookupData_rc.addEventListener('status',Delegate.create(this,status)); } public function loadConnectorData(a_urls_array:Array) { getLookupData_rc.gatewayUrl = _global.gateway; getLookupData_rc.serviceName = a_urls_array['lookupDataURL']; getLookupData_rc.methodName = a_urls_array['lookupDataMethod']; getLookupData_rc.params = []; getLookupData_rc.shareConnections = true; getLookupData_rc.multipleSimultaneousAllowed = true; getLookupData_rc.suppressInvalidCalls = true; } 4. You can now trigger() the remoting connector via code. You will need result and status event handlers to get the results and status back
I had no problem establishing the RemotingConnector in AS2...im getting results, etc What I don't understand and can't find documentation on is binding the results data to dynamic text variables, text box controls, etc....DataGlue takes care of combos, etc but I cannot for the life of me figure out how to reference the column/rows in the results object...any ideas would be greatly appreciated.
hi can you post an example for us brand newbies?? thanks
Don't see what you're looking for? Try a search.
|