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

macromedia flash flash remoting

group:

Flash remoting flash 8


Flash remoting flash 8 Don_Robin
9/28/2005 10:05:39 PM
macromedia flash flash remoting:
Hi,

I just installed flash 8 and flash remoting for flash 8. I never managed to
get it to work, only got the error message.

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

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

Total ActionScript Errors: 2 Reported Errors: 2

So i unistalled everything and installed flash 2004 MX with the remoting
component for AS1. But now that dosn't work either. In the netconection
debugger I get the error message.

Status (object #2)
.....code: "NetConnection.Call.BadVersion"
.....description: ""
.....details: ""
.....level: "error"

I tried installing the remoting component for mx 2004 AS2, but same problem.
Any ideas ??

/Robin
Re: Flash remoting flash 8 STHG
9/29/2005 4:43:12 AM
1. Install Flash 8 and Flash Remoting
2. Create a new blank Flash Document
3. In Frame 1 action script panel enter and replace url and service name with
yours. The one below calls the function findSetup on the service
au.com.otiose.facade.SetupFacade from site http://localhost:9009/gateway

import mx.remoting.Service;
import mx.remoting.PendingCall;
import mx.rpc.RelayResponder;
import mx.rpc.ResultEvent;
import mx.rpc.FaultEvent;

var service:Service = new Service("http://localhost:9009/gateway", null,
"au.com.otiose.facade.SetupFacade", null, null);
var pc:PendingCall = service.findSetup();
pc.responder = new RelayResponder(this, "findSetup_Result",
"findSetup_Status");

function findSetup_Result(result:ResultEvent):Void {
trace("findSetup_Result: Started");
// ...
trace("findSetup_Result: Finished");
}

function findSetup_Status(fe:FaultEvent):Void {
trace("There was a problem: " + fe.fault.faultstring);
}


Re: Flash remoting flash 8 Don_Robin
9/29/2005 8:32:35 AM
Hi STHG,

I tried your script but nothing happens when i run it. No error messages and
no activity in the netconection debugger.

Although im interessed on trying flash 8 i would prefer getting my flash 2004
to work again first.

/Robin
Re: Flash remoting flash 8 STHG
9/29/2005 1:31:11 PM
Hi,
Forget about the debugger, if you copy and paste that script into Frame 1's
actionscript panel for a new Flash document and you are not getting 'Error
opening URL "http://..."', then there is a problem with the installation.
Install Flash 8 and Flash Remoting MX and then read the technote
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=46f3d4ac and
install the hotfix it mentions.
Once that is working, uninstall Flash Remoting MX, Flash 8, and Flash 2004 and
then reinstall Flash 2004 and Flash Remoting MX. Once I did that the old
version worked again (although it might be overkill).
Cheers,
Steve
AddThis Social Bookmark Button