all groups > macromedia flash flash remoting > april 2005 >
You're in the

macromedia flash flash remoting

group:

net connection debugger



net connection debugger noajo
4/5/2005 12:00:00 AM
macromedia flash flash remoting: my coder had published this file on his pc and it works fine, but when i
publish on MAC it does not work.

#include "NetServices.as"
#include "NetDebug.as"

NetServices.setDefaultGatewayUrl("http://cksubject.com/gateway.aspx");
connection = NetServices.createGatewayConnection();
classService = connection.getService("cksubject.remoting.ecomm", this);
classService.getProducts("0");
function getProducts_Result (result)
{
myData = new Array();
// Loop over all the returned nodes and assign values
for( var e = 0; e < result.length; e++ )
{
var productID = (result.getItemAt(e).productID == null) ? "" :
result.items[e].productID;
prodName = (result.getItemAt(e).name == null) ? "" : result.items[e].name;
descriptionMen = (result.getItemAt(e).descriptionMen == null) ? "" :
result.items[e].descriptionMen;
descriptionWomen = (result.getItemAt(e).descriptionWomen == null) ? "" :
result.items[e].descriptionWomen;
colorsMen = (result.getItemAt(e).colorsMen == null) ? "" :
result.items[e].colorsMen;
colorsWomen = (result.getItemAt(e).colorsWomen == null) ? "" :
result.items[e].colorsWomen;
UPCMen = (result.getItemAt(e).UPCMen == null) ? "" : result.items[e].UPCMen;
UPCWomen = (result.getItemAt(e).UPCWomen == null) ? "" :
result.items[e].UPCWomen;
price = (result.getItemAt(e).price == null) ? "" : result.items[e].price;
prodIcon = (result.getItemAt(e).icon == null) ? "" : result.items[e].icon;
movieClip = (result.getItemAt(e).movieClip == null) ? "" :
result.items[e].movieClip;
MCMen = (result.getItemAt(e).MCMen == null) ? "" : result.items[e].MCMen;
MCWomen = (result.getItemAt(e).MCWomen == null) ? "" :
result.items[e].MCWomen;
myData.push({productID:productID, prodName:prodName,
descriptionMen:descriptionMen, descriptionWomen:descriptionWomen,
colorsMen:colorsMen, colorsWomen:colorsWomen, UPCMen: UPCMen,
UPCWomen:UPCWomen, price:price, prodIcon:prodIcon, movieClip:movieClip,
MCMen:MCMen, MCWomen:MCWomen});
}
myDataGrid.dataProvider = myData;
}


this is message i get when i publish on my MAC.

**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Error opening include
file NetServices.as: File not found.
#include "NetServices.as"

**Error** Macintosh HD:Users:kevinreynolds:Library:Application
Support:Macromedia:Flash MX 2004:en:Configuration:Include:NetDebug.as: Line 10:
Classes may only be defined in external ActionScript 2.0 class scripts.
intrinsic class mx.remoting.debug.NetDebug extends Object

Total ActionScript Errors: 2 Reported Errors: 2

can you please help me? would you know how to solve this problem?
Re: net connection debugger NeverPanic
5/18/2005 12:00:00 AM
Do you have Flash Remoting Components installed on this Mac? Get it at
http://www.macromedia.com/software/flashremoting/downloads/components/

Re: net connection debugger sacal
7/6/2005 1:05:08 AM
I had the sae problem. I believe the #include in no longer in use with AS2.0,
so I changed to:
import mx.remoting.*;

With that, I do't get the file not found error anymore, but I STILL can't get
it to connect. The debugger doesn't display anything.
I'm running FLash MX 2004 pro, windows XP, ColdFusion is installed and
running, and the flash remoting components for AS2.0 are installed.

This is very frustrating. ;-(


AddThis Social Bookmark Button