all groups > flash data integration > december 2004 >
You're in the

flash data integration

group:

RemotingConnector: creating an instance with AS


RemotingConnector: creating an instance with AS JerryD
12/28/2004 2:34:00 AM
flash data integration:
Re: RemotingConnector: creating an instance with AS CFFLDave
1/7/2005 10:46:37 PM
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
Re: RemotingConnector: creating an instance with AS Trugriff
1/18/2005 3:56:07 PM
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.
Re: RemotingConnector: creating an instance with AS Trugriff
1/18/2005 5:25:57 PM
Re: RemotingConnector: creating an instance with AS nicetim
1/31/2005 2:32:49 AM
hi can you post an example for us brand newbies??

thanks
AddThis Social Bookmark Button