all groups > macromedia flash flash remoting > september 2004 >
You're in the

macromedia flash flash remoting

group:

NetServices.as missing



NetServices.as missing BNZ
9/12/2004 3:33:48 PM
macromedia flash flash remoting: I am trying to set up Flash remoting with ColdFusion. I am currently trying to
follow the tutorial
http://www.macromedia.com/devnet/mx/coldfusion/articles/startremoting.html but
I keep getting the following error.

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

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

Total ActionScript Errors: 2 Reported Errors: 2

I have Flash MX 2004 Professional installed and also ColdFusion MX 6.1. I have
also installed 'Macromedia Flash Remoting for Flash MX 2004 ActionScript 2.0'
from http://www.macromedia.com/software/flashremoting/downloads/components/

So I really fail to see why this obviously integral file is not present. Any
suggestions would be very welcome?

thanks.
Re: NetServices.as missing asid
9/14/2004 7:46:43 AM
I have the same problem.

Have you found a solution?

Re: NetServices.as missing icegoffy
9/14/2004 10:12:38 AM
I encountered this error b4, i think you need to download the components file
called : FlashRemotingComponents-win-en.exe and not
flashremoting_comp_as20-win-en.exe, as there's some problem with the latter
file. The correct file should be 5.95mb and not 16.3mb.
Re: NetServices.as missing asid
9/14/2004 11:52:19 PM
i believe the file you refer to is the ActionScript 1 version of the components.

I actually just downloaded Source Code for Macromedia Flash Remoting for Flash
MX 2004 ActionScript 2.0 from this page:

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

followed the instructions here:


http://www.macromedia.com/support/documentation/en/flash_remoting/mx2004/readme_
source.html

and everything works
Re: NetServices.as missing donlcs
9/16/2004 2:35:58 AM
I did not ask the question, however, your anwser is also valid to me since I
just downloaded and installed Flash Remoting a few hours ago and have had no
prior experience Flash or any sort of mulmedia staff. I do have a question
though,
the info at the URL that you kindly provides includes the following info:
{Flash MX 2004}\en\First Run\classes

import mx.remoting.*;

I've searched for "remoting" folder under my Flash MX 2004 installation to no
avail. OK, so, virtual mapping, now,
would it make more sense to import all remoting AS (took it as ActionScript --
script that controls the action of the current media?) files like in
import mx.remoting.* for all FLA files or
pick what one needs (then, what each of these files do, and where are they
physically?)

Another question, any serious tutorial for Flash Remoting?

Thank you.

Don


Re: NetServices.as missing asid
9/16/2004 2:45:51 AM
Try doing things in this order:

Install Flash MX 2004 Professional.

Install flashremoting_comp_as20-win-en.exe from
http://www.macromedia.com/support/documentation/en/flash_remoting/mx2004/readme_
source.html to add the remoting classes.

These three steps should give you a path like this to explore:

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

There are some samples available after you install that you can look at:

C:\Program Files\Macromedia\Flash MX 2004\en\First Run\RemotingSamples

HTH

Antony


Re: NetServices.as missing donlcs
9/16/2004 3:02:25 AM
Thanks, Antony. Well, I've downloaded and installed
flashremoting-java-win-en.exe, would install flashremoting_comp_as20-win-en.exe
cause conflict/problem.
Probably I should uninstall flashremoting-java-win-en.exe, which seems to be
for J2EE while the cf server on my box is CFMX6.1, so, probably
flashremoting_comp_as20-win-en.exe is more fit for my box. Any idea on how to
uninstall flashremoting-java-win-en.exe (flash remoting for j2ee) ?

Regards,

Don
Re: NetServices.as missing asid
9/16/2004 3:12:56 AM
The flash remoting components are for your local/developer pc - ie the pc you
use flash mx 2004 pro on.

If you are using CF6.1 as your web application server, you don't need any
server components. flashremoting-java-win-en.exe is not needed, unless you
want to use Flash Remoting against a java application server.

Try Add/Remove programs to get rid of flashremoting-java-win-en.exe (they're
probably not interfering anywhere, but best to get rid of them.)

Then, try my 3 steps again.

Cheers

Antony


Re: NetServices.as missing donlcs
9/16/2004 4:00:21 AM
Great. Antony, just got them done as you instructed, will explore the samples tomorrow, thank you very much.

Re: NetServices.as missing donlcs
9/16/2004 3:56:46 PM
Antony,

I believe everything is set up correctly (the steps have been followed
exactly), and the remoting gateway has been tested to work,
http://localhost/flashservices/gateway/

However, loading takes forever and the flash filled page never shows up (over
8 minutes already and it does not time out). FYI, machine info: XP Pro, 512 MB
RAM,

What could possibly be the culprit?

Thanks.

Don

Re: NetServices.as missing lL202
9/16/2004 5:48:27 PM
asid's post resolved this problem for me. apparently the installers are a
little problematic? Remoting seems to be fairly well documented, but be
advised the differences between 1.0 and 2.0 seem to be substantial.
Re: NetServices.as missing donlcs
9/16/2004 6:25:47 PM
It's working now. In addition to cfc, swf , war and html files, both the
SERVER and CLIENT directory must also be copied over to the web doc root
directory or its subdirectory.

remotesamples.war ? If we need to create another function or app in a
separate directory, then, one has to create a war file as well???

Thanks.

Don


Re: NetServices.as missing donlcs
9/16/2004 6:49:51 PM
Actually a more important question than the war file one, I opened the
CustomerInfoFormAPI.as file, quite a bit objected-oriented code there, does one
have to write this code or sort of system generated?

How does the process of "marry" business logic like data set in a database and
presentation like fla / swf work?
Further reading from here?

Thanks.

Don

Re: NetServices.as missing William...
9/22/2004 12:35:48 AM
Hi there,

I have been following your conversation and I am very interested in using
Flash Remoting with my Flash apps. I have a good understanding of CFML, CFCs
and Flash. I want to begin learning how to use flash remoting and I need
advice, helpful introductory tutorials on how to start.

More importantly, I am really confused about Flash remoting with Actionscript
1.0 and Flash remoting with actionscript 2.0 which one will you advise a
beginner to learn? Macromedia doesn't recommend using Netservices.as to
connect, but does using Netservices.as work with Flash Remoting MX 2004 and
Flash MX 2004?

Another thing is that, do web hosts support flash remoting mx 2004?

Please reply. Thanks in anticipation.

Big Will...
Re: NetServices.as missing cmsn
9/23/2004 6:52:39 PM
Hi Willian,

If you don?t need backward compatibility to ActionScript 1.0 it is better to
learn Flash Remoting to AS 2.0.

Regarding your other question, the NetServices class is still supported but
has been deprecated in favor of the new Service and Connection classes.

You can download a nice documentation called "Using Flash Remoting for Flash
MX 2004 ActionScript 2.0" from
http://www.macromedia.com/support/documentation/en/flash_remoting/index.html

Hope it helps.

Celio.
AddThis Social Bookmark Button