all groups > macromedia flash flash remoting > july 2006 >
You're in the

macromedia flash flash remoting

group:

A little help with my flash remoting


A little help with my flash remoting Tigger
7/3/2006 8:30:25 AM
macromedia flash flash remoting:
I am trying to simply fill-in a ListBox UI component using flash
remoting. I was able to connect to the service and pull a result but
I'm not able to get the data into the ListBox element.

Here is what is in the NetConnectionsDebugger:
====================================
Under Connect - ... :
------
ConnectString: "..."
DebugId: 0
EventType: "Connect"
MovieUrl: "file:///C|/Documents and
Settings/chris/Desktop/ria_databases/devnet/bike_parts.swf"
Protocol: "http"
Source: "Client"
Time: 1151939884253
Date (object #1)
......"Mon Jul 3 11:18:04 GMT-0400 2006"
--------

Under Call - bike_parts.get_parts(); :
--------
DebugId: 0
EventType: "Call"
MethodName: "bike_parts.get_parts"
MovieUrl: "file:///C|/Documents and
Settings/chris/Desktop/ria_databases/devnet/bike_parts.swf"
Protocol: "http"
Source: "Client"
Time: 1151939884253
Date (object #1)
......"Mon Jul 3 11:18:04 GMT-0400 2006"
Parameters (object #2)
......No properties
--------

Under Result - {15:[object Object], 14:[object Object], ...} :
--------
DebugId: 0
EventType: "Result"
MovieUrl: "file:///C|/Documents and
Settings/chris/Desktop/ria_databases/devnet/bike_parts.swf"
Protocol: "http"
Source: "Client"
Time: 1151939884785
Date (object #1)
......"Mon Jul 3 11:18:04 GMT-0400 2006"
Result (object #2)
......[0] (object #3)
...........description: "Excellent cleat engagement"
...........name: "Clipless Pedals"
...........part_id: 1
...........part_type: "Pedal"
...........price: 89.95
......[1] (object #4)
...........description: "Pedal cadence sensor magnet"
...........name: "Record Pro-fit Pedals"
...........part_id: 2
...........part_type: "Pedal"
...........price: 125.99
......[10] (object #5)
...........description: "A full 100mm of rise"
...........name: "Nashbor Easy Rider"
...........part_id: 11
...........part_type: "Handlebar"
...........price: 12.95
<snip>
......[9] (object #18)
...........description: "Efficient and superbly crafted"
...........name: "ATB Rocket"
...........part_id: 10
...........part_type: "Saddle"
...........price: 52.99
--------
========================================

And finally my Action Script:
========================================
//Create responder method for part info
function get_parts_result(parts_rs){
DataGlue.bindFormatFunction(parts_lb,parts_rs,binder);
}

//Create binder function used with DataGlue.bindFormatFunction
this.binder=function(record){
var dataObj=new Object();
dataObj.label=record.name;
dataObj.data=record;
return dataObj;
}

//Setup Remoting
var net_conn = NetServices.createGatewayConnection("...");
var partService = net_conn.getService("bike_parts", this);

//Invoke a remote method to get part info
partService.get_parts();
======================================

There is no error displayed or anything .. just nothing showing up in
my listbox component. Any help you guys could give me would be great,
I've been looking at it for some time now. I'm not sure if it makes
any difference, but I am doing my remoting in Perl using AMF::Perl. If
you need any more info from me let me know and I'll get it for you.
Thanks
Re: A little help with my flash remoting Tigger
7/3/2006 8:34:40 AM
I forgot to mention that I am using Flash MX 2004.
AddThis Social Bookmark Button