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 ?????? rc.RecSet["zahl"]
}
I don't know how to place the code
[quoted text, click to view] sixlead wrote:
> assuming that your connection is returning a record set you can use the
> following methods to get at the records getColumnNames() getLength()
> getItemAt() cn = recSet.getColumnNames(); //retrieve all column names len =
> recSet.getLength(); // retrieve number of records for (i = 0; i < len;
> i++){ // loop through array record = recSet.getItemAt(i); // assign
> individual record to a variable for (c in cn){ // use for ..in loop to
> iterate over object properties output += record[cn[c]] + ', '; }
> trace(output); // display record output = ''; // reset variable for
> next loop }
Try this:
function categoryResult(ev:Object) {
trace("Got Categories - " + ev.target.results);
}
function categoryStatus(stat:Object) {
trace("Categories Error - " + stat.code + " - " + stat.data.faultstring);
}
cf.addEventListener("result",categoryResult);
cf.addEventListener("status",categoryStatus);