
Welcome Guest
|
#1
|
|||
|
|||
|
Flash Remoting for ActionScript 2.0 problem
Sorry, I figured out the problem. I forgot to add result:ResultEvent as a parameter in
helloWorld_Result() I am just getting into this "remoting" thing and has created my first service that was supposed to output "Hello" in a text field but instead I get undefined displayed there despite the fact that when I test my movie Control>Test Movie - i get the correct output: (2/10 21:13:29 [INFO] : Invoking helloWorld on remoteservices 2/10 21:13:30 [INFO] : remoteservices.helloWorld() returned "Hello") but inside the movie it says Undefined :-/ here is my CFM page: <html> <head> <title>test</title> </head> <body> <cfset flash.result="Hello"> </body> </html> here is what I have on first frame: Actionscript:
import mx.remoting.Connection;
import mx.remoting.Service;
import mx.services.Log;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;
var howdyService:Service = new Service(
"http://192.168.1.2/flashservices/gateway",
new Log(),
"remoteservices",
null,
null);
var pc:PendingCall = howdyService.helloWorld();
pc.responder = new RelayResponder(this, "helloWorld_Result", "helloWorld_Fault");
function helloWorld_Result(){
messageDisplay.text =result.result;
};
function helloWorld_Fault(fault:FaultEvent) {
messageDisplay.text="Nothing";
}
__________________
+.+ Last edited by jacobdol : 02-11-2005 at 05:47 AM |
«
Previous Thread
|
Next Thread
»
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The History of Flash | theUKdude | Members Cafe |
29 | 01-24-2013 08:24 AM |
| New Flash Builder 4.6 is now available for download | FlashMove | Flash Builder |
0 | 12-05-2011 01:35 AM |
| The News From Adobe on the Future of Flash Platform | FlashMove | Chit Chat Lobby | 0 | 11-10-2011 09:55 AM |
| Open Letter to Macromedia | molaram | General Flash | 10 | 02-18-2005 01:29 AM |
| Audio problem in Flash movie embedded in Director projector | cesarsirv | General Flash | 2 | 11-05-2003 09:38 AM |




