Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / July 2006



Tip: Looking for answers? Try searching our database.

A little help with my flash remoting

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tigger - 03 Jul 2006 16:30 GMT
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
Tigger - 03 Jul 2006 16:34 GMT
I forgot to mention that I am using Flash MX 2004.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.