Everything looks good to me, my next question is ... is this in a class?
If so how is it being invoked?

Remember that if you have your service or other object referenced in a
way that the Garbage collector see's it to be wiped it will work until
the Garbage collector gets to that Object or Reference to it.

Cheers
Robert

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Lightmaker (James Laver)
Sent: Wednesday, January 18, 2006 4:54 PM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] Flash 8 Mac Projector - Remoting Issue

Thanks for the reply Robert.

The strangest thing about this problem is that the first two calls work
perfectly; its just any following calls just vanish!

Below is the code we are using for testing:

//import mx.remoting.*;
//import mx.services.*;
//import mx.rpc.*;
import mx.remoting.Service;
import mx.services.NetServices;
import mx.services.Log;
import mx.rpc.RelayResponder;
import mx.rpc.FaultEvent;
import mx.rpc.ResultEvent;
import mx.remoting.PendingCall;
import mx.remoting.RecordSet;
import mx.remoting.debug.NetDebug;
//initialize debugging support
var debug:Boolean = NetDebug.initialize();
var no:Number = 1;
var custinfoLog:Log = new Log(Log.DEBUG, "logger1");
custinfoLog.onLog = function(message:String):Void 
{
        sendToBox("Connection Log: \n"+message+"\n");
};
var service:Service = new
Service('http://www.prismone.int/flashservices/gateway', custinfoLog,
'_cfc.model.testRemote.event', null, null);
send_btn.parent = this;
send_btn.onPress = function()
{
        sendToBox("Waiting for results :)...\n");
        this.parent.makeConnection();
};
function makeConnection():Void
{
        var var1:Number = var1_txt.text;
        var var2:Number = var1_txt.text;
        var var3:Number = var1_txt.text;
        sendToBox("call #"+no+"...\n");
        
////////////////////////////////////////////////////////////////////////
////
/////////////////////
        
////////////////////////////////////////////////////////////////////////
////
/////////////////////
        var pendingCall:PendingCall = service.logEvent(no, var1, var2,
var3);
        pendingCall.onResult = function(result)
        {
                sendToBox("PendingCall object created\n");
                sendToBox("Data has been sent with no errors\n"+"->
"+result+"\n");
                no++;
        };
        pendingCall.onFault = function(fault)
        {
                sendToBox("PendingCall object ERROR !!!
"+fault.faultstring+"\n");
                no++;
        };
}
function sendToBox(a:String)
{
        results_txt.text = a+results_txt.text;
}

<EOF>

James

 
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
A.
Colvin
Sent: Wednesday, January 18, 2006 4:41 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Flash 8 Mac Projector - Remoting Issue

I have seen this before but it usually has to do with the player GC and
how your declaring crutial vars.   If you can post some code to target
the issue

Cheers
Robert

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Lightmaker (James Laver)
Sent: Wednesday, January 18, 2006 4:34 PM
To: 'Flashcoders mailing list'
Subject: [Flashcoders] Flash 8 Mac Projector - Remoting Issue

Hi, 

I have stumbled into a problem with the Flash 8 Mac Projector when
sending
Remoting calls. 

I've created a VERY simple movie that connects to an equally simple
Coldfusion CFC and returns a result. 

I am developing within Flash 8 for Windows and exporting to swf, exe and
hqx
files. 

When running as an EXE on Windows, I am able to send calls and receive
the
correct results every time. Also, when running the swf from within a
HTML
page, it works perfectly on both Windows and on the Mac.

The problem occurs when I export the movie as a HQX and try and run it
on a
Mac Mini (OS X 10.4.4). For no apparent reason the movie is only able to
send and receive 2 calls, after the result of the second call is
received,
all subsequent calls never reach the server. Net-Connection debugger
displays an outgoing call, but it's never actually received by the
server. 

Has anyone seen this issue before? 

Any help would be greatly appreciated as I am slowly going nuts
searching
google for more random combinations of keywords. 

Thanks in advance, 

James.

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to