PDA

View Full Version : Flash 8, remoting components, "NetServices.as: File not found."


supersloth
04-08-2008, 10:30 PM
Ok, this problem is a little convoluted so please bare with me.

We recently had a developer leave who was one-deep on all our flash development (our fault I realize). We have a header on our internal intranet that uses flash remoting. On his way out the door I got a tiny bit of info on how he was doing this, but I'm still having problems. (Also, I am a flash newbie, I am just trying to grab the reins of this now while there is no emergency so I don't get screwed over when there is one)

He said I had to have Flash 8 to get it working, so I installed that. Then I installed the flash remoting components, (from here http://www.adobe.com/products/flashremoting/downloads/components/)

However, when I try export my file to .swf, I am getting the following error:


here's the code that is running it, just in case it helps
stop();
#include "NetServices.as"
#include "NetDebug.as"
remotingServer = "https://"+server+"/flashservices/gateway";
NetServices.setDefaultGatewayUrl(remotingServer);
var gw = NetServices.createGatewayConnection();
var myService = gw.getService("includes.components.headerTitles", this);
myService.getHeader(subSiteID);
function getHeader_Result(results) {
org.text = results.items[0].organization.toUpperCase();
sub.text = results.items[0].subSiteName.toUpperCase();
orgUrl = results.items[0].orgURL;
}

also, i did try using "import mx.remoting.*;" and "import mx.remoting.NetServices;", but I get the same error as before.

If anyone could help me out I would appreciate it a ton, thanks.