Groups | Blog | Home
all groups > macromedia flash flash remoting > december 2003 >

macromedia flash flash remoting : Do I need Flash Remoting?



Tom Muck
12/10/2003 3:36:05 PM
[quoted text, click to view]
NetConnection Debugger you can see it coming back but using the
DataGlue.bindFormatStrings to try and populate the listBox nothing happens.
[quoted text, click to view]
dataglue...

DataGlue does not work with Flash MX 2004 components. You must use Flash MX,
or download the Flash MX components from the Macromedia exchange if you want
to use DataGlue.


--
---------------------------------------------------------------
Tom Muck
author -- Flash Remoting: The Definitive Guide
http://www.flash-remoting.com/notablog

Team Macromedia Volunteer for Flash

Extending Knowledge, Daily
http://www.communityMX.com/

marioV
12/10/2003 4:26:26 PM
I'm a little new to getting data into Flash. The article writen by Kevin Towes (http://www.macromedia.com/devnet/mx/coldfusion/articles/remoting.html) walked me through the whole proccess. It was pretty easy, but it didn't work. I get records back, but I can't populate the datagrid. Am I doing something wrong? Do I need Flash Remoting Server installed for this to work?

I don't get any errors. I only see the trace messages and nothing happens. I made sure the grid had the right name.....I can't think of anything else. Here's the code:

#include "NetServices.as"
#include "NetDebug.as"
if (isGateWayOpen == null) {
isGateWayOpen = true;
NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
var myService = gw.getService("bookstore.HelloWorld", this);
trace("connected!");
myService.getNames();
trace("sent request");
}
function getNames_Result(result) {
trace("server responded: Records: " + result.getLength());
trace("setting the grid");
myDataGrid.setDataProvider(result);
}

mangoman
12/10/2003 4:59:50 PM
I hve exactly the same problem, the data comes back, and if you use the NetConnection Debugger you can see it coming back but using the DataGlue.bindFormatStrings to try and populate the listBox nothing happens.

I can populate the ListBox Manually but I would prefer to use the dataglue...

Help us please


see my posting
Unable to populate listbox

Dave

marioV
12/10/2003 11:37:26 PM
So what would be better?
A: Use the MX components
or
B: get it to work in Flash MX 2004?

I'd like to get it to work in Flash MX 2004. Is there anywhere where I can find out where to do that?

Tom Muck
12/11/2003 10:28:26 AM
Try this sample:
http://www.flash-remoting.com/examples/multiplecombo2004/

Tom

[quoted text, click to view]

AddThis Social Bookmark Button