PDA

View Full Version : NetServices.as: File not found.


meddlingwithfir
10-10-2005, 05:58 PM
Before anyone jumps the gun, I have installed the Flash Remoting component from this page:

http://www.macromedia.com/software/flashremoting/downloads/components/#flr_fl8

link to file:
http://download.macromedia.com/pub/flashremoting/flash8/flashremoting_components_flash8.msi


Not sure if I did something wrong, or if the install file just doesn't like me :)

Closed my open Flash 8 window, and double clicked the .msi file. Install seemed to go fine, no big flashing red alerts there. But when I opened up one of my old Flash MX files that I wrote (which used Remoting), I get the:

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

Total ActionScript Errors: 1 Reported Errors: 1

Error. I remember getting this in Flash MX 2004 as well, but at that time, I had forgotten to install the Remoting Component. I just installed Flash 8, and just installed the Remoting Component for Flash 8. I did a search on my hard-drive for NetServices.as, and did find two references to it:

C:\Documents and Settings\Steve\Local Settings\Application Data\Macromedia\Flash 8\en\Configuration\Classes\mx\remoting

and

C:\Program Files\Macromedia\Flash 8\en\First Run\Classes\mx\remoting

They seem to belong to Flash 8, but for some reason Flash is not finding them? Any help here, please? :)

meddlingwithfir
10-10-2005, 06:02 PM
And, of course, the minute after I post this, I find the solution. What a wonder google is.

Incase anyone else comes across this error, you can NOT use Actionscript 1.0 syntax to import the NetServices.as file.

So instead of:

#include "Netservices.as"

Use:

import mx.remoting.*;

Or:

import mx.remoting.NetServices;

Both of those worked for me :)

ovydiu
10-11-2005, 02:05 PM
you're becoming a very useful forum member.. :D keep up the good work!

meddlingwithfir
10-11-2005, 11:13 PM
I try :D