Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Remoting

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-05-2003, 03:36 PM   #1
finnstones
Registered User
 
Join Date: Jul 2003
Posts: 35
Default remoting error?

NetServices info 1: getFunc_Result was received from server: [object Object]

anyone know why this would happen with the below code?

#include "NetServices.as"
#include "NetDebug.as"
#include "DataGlue.as"
changeShipMethod = function () {

_global.myOrderID = new Array();
_global.shipMethod ="02";

init = function () {
if (this.inited != undefined) {
return;
} else {
this.inited = true;
//
// connect to the Flash Remoting service provider
// NOTE: change the URL to match that of your ColdFusion MX server
// NOTE2: if you are calling the webservice from the same domain your
// swf file is called from, you don't need to declare the SetDefaultGatewayURL
//
NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway");
gatewayConnnection = NetServices.createGatewayConnection();
myService = gatewayConnnection.getService("petmarket.api.upsra te", this);
myService.getFunc(shipMethod);
dataForServer = new Object();
trace("REMOTING INITIALIZED");

}
}

//
// :::: FLASH REMOTING: Server Functions Initializer ::::
//
//
// Retrieve the Func List from the server

// Handle the Function List when returned from the server
function getFunc_Result(result)
{
item=result.items[0];

myOrderID.push(item.TotalCharges);

trace(myOrderID);

}


this.init();

}
this.changeShipMethod ();
finnstones is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:13 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.