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.
I have the same problem. Have you found a solution?
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.
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
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
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
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
Great. Antony, just got them done as you instructed, will explore the samples tomorrow, thank you very much.
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
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.
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
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
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...
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.
Don't see what you're looking for? Try a search.
|