Groups | Blog | Home
all groups > macromedia flash flash remoting > february 2005 >

macromedia flash flash remoting : RemotingConnector : how to access to the result


carstenw
2/6/2005 7:09:09 PM
Hello,

how can I access directly the result of an RemotingConnector ?

With the NetConnection Debugger I get the results visible
but how can I e.g. read the value of "zahl" to calculate something with
it in AS ?

Result (object #2)
......mRecordsAvailable: 1
......serverInfo: (undefined)
......uniqueID: 1
......_items (object #3)
...........[0] (object #4)
................__ID__: 0
................bemerkungen: "Testbenutzer f?ie deutsch Sprache"
................benutzer: "a"
................id: "2"
................passwort: "cc"
................schluessel: ""
................sprache: "DE"
................zahl: "22"
......mTitles (object #5)
...........[0]: "id"
...........[1]: "benutzer"
...........[2]: "passwort"
...........[3]: "schluessel"
...........[4]: "bemerkungen"
...........[5]: "sprache"
...........[6]: "zahl"

Thank you for help.

Carsten
phil ashby
2/7/2005 1:03:42 PM
if your initial call was "mycall" then the result will come back as
mycall_result.

create a function called mycall_result()

you can then access the recordset through result.items[x].fieldname
where x is the record value - use something like this to populate a listbox
(my_lb)

function mycall_result ()
{
counter = 0;
my_lb.removeAll ();
while (counter < result.items.length)
{
my_lb.addItem (result.items[counter].name);
counter++;
}
}


carstenw
2/7/2005 2:37:08 PM
Thank You, but I have the following code delivering the
RemotingConnector, named with "rc", on the stage:

on(click){
rc.gatewayUrl = _global.amfphp_gateway;
rc.params = new Array("a","cc");
rc.trigger();
trace(rc. ... <--- How to continue ??????
}
I don't know how to place the code

[quoted text, click to view]
carstenw
2/11/2005 4:53:56 PM
I got it now. Thank you :-)
[quoted text, click to view]
AddThis Social Bookmark Button