I am SO frustrated. I have been trying ALL DAY to get a simple HelloWorld
remoting application to run. All I get is a blank white screen, with no trace
and nothing in my debugger. Help!! Help!! Please, I don't understand why this
is such a complicated thing to use with Cold Fusion - my organization is
wanting to drop MM all together after our CFMX 7 experience, and now this. If
anybody can help I am forever appreciative.. My code is as follows, I can't
really begin to fix it as I don't know where the error lies... I get NO output
when I run the movie. function Result() { //receives data returned from the
method this.onResult = function(result) { trace('Data received from server
: ' + result); //this is where we put the data in the text field
dataField.text = 'Data received from server : ' + result; } this.onStatus
= function(error) { trace('Error : ' + error.description); //this is where
we put the data in the text field dataField.text = 'Error : ' +
error.description; } }
NetServices.setDefaultGatewayUrl('http://www.readingfirstohio.org/flashservices/
gateway'); var gw = NetServices.createGatewayConnection(); var server =
gw.getService('HelloWorld', new Result()); server.sayHello();
tutsamewasa - 06 Apr 2005 13:46 GMT
Hi,
Where are the import statements Sir :)
I guess you are missing import statement for the Netservices.
Good Luck
Hemendra Singh Shaktawat
Mindfire Soluitions
www.mindfiresolutions.com
AkronNick - 06 Apr 2005 14:03 GMT
THANKS FOR REPLYING! I actually figured that out yesterday. I thought if we
drag the remoting classes to the stage then delete them that they are stored in
the library and we didn't need the import statement. I know better now, thank
you again. Nick
sacal - 06 Jul 2005 02:20 GMT
Hello there,
I'm trying to get this same exact HelloWorld sample to work. But it doesn't
look like it's connecting. I tested the ColdFusion server and things are fine
on that end.
My flash remoting componets are for AS2.0, and when I use the syntax:
#include "NetServices.as"
It returns an error "fle not found". So I changed to: import mx.remoting.*;
I no longer get the error, but nothing works either....
Why?????
This same HelloWorld sample has a fisrt step which connects the the ColdFusion
component via a .cfm page, and that works just fine! The problem is getting
Flash to talk to ColdFusion.
Any ideas? Pleeeeeeeeeeeaaaaaase?
LuigiL - 06 Jul 2005 08:35 GMT
Install the AS1 version (you can still use the AS2-version so don't worry) and use #include "NetServices.as
sacal - 06 Jul 2005 14:18 GMT
YES!!!!!!! Thank you sooooooo much Luigi. I didn't see anywhere that I should have both Remoting for AS1.0 and 2.0 installed. But hey... whatever works, right?!
Thanks again! ;-D
M?rcia
LuigiL - 06 Jul 2005 17:10 GMT
You're welcome. Good luck.
fmdano - 19 Jul 2005 15:41 GMT
Hey, could you post or attach the code you used to get the Hello world to work?
I am trying to figure it out now.
We have just started to convert over to cf7, and it seems like my old flash
remoting code does not work well with cf7.
the code i was used was #include netservices.as. it seems like there is some
sort of inport services and some class stuff.
I am not really too familiar with this, so i am trying to find any info on it.
thanks
dan
sacal - 20 Jul 2005 15:02 GMT
You can still use #include, but the thing is: you have to have both AS1.0 and
AS2.0 remoting comp. installed. One would think that the 2.0 version has
everything 1.0 has plus some, right? But this is not really the case.
I pretty much used basic AS and CF code I found online to make the connection,
and nothing was working! Until I found this post and LuigiL told me to install
AS1.0 also.... and that did the trick!!
I can still send you the code I used if you want me to. Would it be AS or CF?
Good Luck!
M&M
fmdano - 04 Jan 2006 19:08 GMT
Hello,
I am running into this problem again now that I have upgraded to flash 8. It
seems like I can't use the #include coding, so i switched over to inport. So it
seems like I can pass data to my cf7 cfc, but I can't get data returned. Is
there a new way with flash 8 to view data returned from a cfc?
I figured from what I read, that I can't use the #include now with flash 8?
Can you help me solve this problem? My program seemed to work before my
company upgraded to flash 8, now i can't get data to return properly.
thanks
dan
ajpowellatl - 12 Jan 2006 21:28 GMT
Just a note, Flash Remoting for AS 1.0 does not work with Flash 8.
ap
danielp_c2k - 14 Jan 2006 23:36 GMT
Dear All, There is a section in flash8 help UsingFlashRemotingMX2004->Getting
Started->Migrating Existing Applications to Flash MX2004 .. most of your
answers in moving your as1->as2 code are there. And correct as1 is not
supported (nor will be apparently) in flash8. Use flash 2004 (or earlier) for
your as1 remoting otherwise convert or rewrite for flash 8. It isnt hard
actually #include become import netservices becomes service ,netconnection
->connection blah blah :) Good luck.