[mtasc] XMLSockets, events, and -main

Allen, Christopher S. CSALLEN at PARTNERS.ORG
Mon Sep 12 19:56:15 CEST 2005


Hey Ralf,

You are right about that.  Going out never seemed to have a problem. It was just
the onData events coming from the server didn't seem to fire.  I will try and
come up with this example when I get a bit more time.  Sorry that I can't do it
now.

-Chris 

-----Original Message-----
From: mtasc-bounces at lists.motion-twin.com
[mailto:mtasc-bounces at lists.motion-twin.com] On Behalf Of Ralf Bokelberg
Sent: Monday, September 12, 2005 1:44 PM
To: MotionTwin ActionScript2 Compiler List
Subject: Re: [mtasc] XMLSockets, events, and -main

At least sending data over an XMLSocket works fine.
I'm using them to connect to SOS.

Cheers,
Ralf.

Allen, Christopher S. wrote:

> Hi Andy,
> 
> I was never able to get my event handlers to work properly with my socket
> application either compiling with MTASC. It works fine with MMC compilation.
Not
> sure what the problem is/was and haven't had the time to come up with a simple
> example that illustrates the problem for Nicolas yet.
> 
> I wasn't using the -main argument in my compilation either, so I don't think
> that's the culprit.  Please let us know if you find out more.
> 
> Thanks,
> Chris
> 
> 
> -----Original Message-----
> From: mtasc-bounces at lists.motion-twin.com
> [mailto:mtasc-bounces at lists.motion-twin.com] On Behalf Of Andy Dwelly
> Sent: Monday, September 12, 2005 10:52 AM
> To: Kelvin Luck; MotionTwin ActionScript2 Compiler List
> Subject: Re: [mtasc] XMLSockets, events, and -main
> 
> Its all on the same machine for the moment - its a proptotype of an idea 
> I'm working on. I should probably add that despite this particular 
> problem, I'm terribly impressed with mtasc. I got my first piece of 
> actionscript compiling and giving me usful results almost at once.
> 
> Andy
> 
> 
>>Not sure if this is your issue but the localhost you are passing to 
>>the XMLSocket means the localhost where the swf is playing (e.g. the 
>>computer you are browsing from). Not where it was served from. Or are 
>>you hosting the swf, browsing and hosting the socket server from the 
>>same machine?
>>
>>Hope that helps,
>>
>>Kelvin.
>>
>>On 9/12/05, *Andy Dwelly* <andy.dwelly at safedataco.com 
>><mailto:andy.dwelly at safedataco.com>> wrote:
>>
>>
>>         var url = "localhost";
>>         var res = server.connect(url, 8080);
>>         this.write("Attempted to connect to " + url + " with result "
>>    + res);
>>
>>
>>------------------------------------------------------------------------
>>
>>--
>>MTASC : no more coffee break while compiling
>>
> 
> 
> --
> MTASC : no more coffee break while compiling
> --
> MTASC : no more coffee break while compiling
--
MTASC : no more coffee break while compiling



More information about the mtasc mailing list