LoadPolicyFile on xmlsocket problem

Hi,
I have some strange problem regarding the security settings
in Flash Player. I'm using AS3 to connect to port 80 on my server.
Because this is only allowed after downloading a policy file, I'm
calling
Security.loadPolicyFile("xmlsocket://"+_httpServer+":20");
just before
socket.connect(_httpServer, _httpPort);
On my server I tell inetd to listen on port 20 and start the
following bash script after a connection has been established:
#!/bin/bash
read
printf '<?xml version="1.0"?><!DOCTYPE
cross-domain-policy SYSTEM "
http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy><allow-access- from
domain="*" to-port="80" /></cross-domain-policy>\00'
exit
My app doesn't work, though. I notice, that a connection is
opened to port 20 and that the policy file is sent to the Flash
Player. But then nothing happens. No exception, no error, and I'm
already using the debug version of the Player.
Has anyone already successfully established a socket
connection after loading a policy file from another port via
"xmlsocket://"? Or am I completely wrong with the way my bash shell
script is handling the connection? Any ideas?
Thanks in advance
Mycroft.

So I switched from XMLSocket to just plain Socket.
I have this now:
  var sock:Socket = new Socket();
            sock.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
            sock.connect("localhost", 7778);
            sock.writeUTFBytes(xmlMsg);
            sock.flush();
But nothing gets transmitted unless I close the Flex app.
I don't get this. What seems to be a problem?
I read an API docs twice and it says that writeUTFBytes (or any other write methods) are just putting stuff in a buffer
the flush() is the one that signals that the buffer content needs to be sent.
I'm doing just that and still I get nothing on the other side unless I close the Flex app.
Any suggestion?
Thanks
Greg

Similar Messages

  • XMLSocket Problem

    I can work fine which run in flash . I can see the connection can established and disconnected until i close the flash
    but i publish the flash to html and run in broswer, the flash can connect to server but it will disconnected in the same time. That means i can see the log is established connection then disconnect connnection.
    I cannot find the solution.
    Please help.
    Thank you
    flash code :
    mySocket = new XMLSocket();
    mySocket.onConnect = function(success) {
        if (success) {
            msgArea.htmlText += "<b>Server connection established!</b>";
        } else {
            msgArea.htmlText += "<b>Server connection failed!</b>";
    mySocket.onClose = function() {
        msgArea.htmlText += "<b>Server connection lost</b>";
    XMLSocket.prototype.onData = function(msg) {
        msgArea.htmlText += msg;
    mySocket.connect("dyn.obi-graphics.com", 9999);
    //--- Handle button click --------------------------------------
    function msgGO() {
        if (inputMsg.htmlText != "") {
            mySocket.send(inputMsg.htmlText+"\n");
            inputMsg.htmlText = "";
    pushMsg.onRelease = function() {
        msgGO();

    So I switched from XMLSocket to just plain Socket.
    I have this now:
      var sock:Socket = new Socket();
                sock.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
                sock.connect("localhost", 7778);
                sock.writeUTFBytes(xmlMsg);
                sock.flush();
    But nothing gets transmitted unless I close the Flex app.
    I don't get this. What seems to be a problem?
    I read an API docs twice and it says that writeUTFBytes (or any other write methods) are just putting stuff in a buffer
    the flush() is the one that signals that the buffer content needs to be sent.
    I'm doing just that and still I get nothing on the other side unless I close the Flex app.
    Any suggestion?
    Thanks
    Greg

  • Help! Flash MX to Labview with XMLsocket problem

    I'm attempting to send strings to Labview using the XMLsocket object
    in Macromedia Flash MX. I created a layer in Flash with the following
    Action script:
    mySocket = new XMLsocket();
    mySocket.connect("localhost",2055);
    Then I created a layer with a button that has the following button
    Action script:
    on (release) {
    mySocket.send("mystring");
    Then I created a Labview program (on the same machine) that has a
    single while loop with code that creates a listener at port 2055 (the
    port connected to Flash) and some code for reading the port.
    This setup works, except Labview will only receive the string once
    from the button push, even though the receive code is in a loop.
    Subsequent button pushes in Flash does not resul
    t in characters being
    received in LV. Has anyone here done this before? Thanks.
    gm

    Fixed it. You've got to have the Labview create listener VI started
    first and also outside the while loop. Works great!
    [email protected] (greenman) wrote in message news:<[email protected]>...
    > I'm attempting to send strings to Labview using the XMLsocket object
    > in Macromedia Flash MX. I created a layer in Flash with the following
    > Action script:
    >
    > mySocket = new XMLsocket();
    > mySocket.connect("localhost",2055);
    >
    > Then I created a layer with a button that has the following button
    > Action script:
    >
    > on (release) {
    > mySocket.send("mystring");
    > }
    >
    >
    > Then I created a Labview program (on the same machine) that has a
    > single while loop with code that creates a listener at port 2055 (the
    > port connected to
    Flash) and some code for reading the port.
    >
    > This setup works, except Labview will only receive the string once
    > from the button push, even though the receive code is in a loop.
    > Subsequent button pushes in Flash does not result in characters being
    > received in LV. Has anyone here done this before? Thanks.
    >
    > gm

  • XMLSocket problem for GPS gateway in VB

    I am a student at the University of Staffordshire in the
    United Kingdom.
    For my final year project I am creating a walking tour of the
    university using GPS and Flash on a Smart phone running Windows
    mobile 5 with flash lite 2.1.
    Now I created a application in VB.net witch receives the GPS
    information (it checks all com ports and baud rates) and sends this
    to flash via a socket.
    All the components work on the desktop. The GPS can even
    write away to a txt file or XML with no problem on the device.
    I have the following problem.
    The connection between flash and visual basic.net on the
    mobile device won’t let me send any information. Flash will
    return that a connection is made but will not receive any
    information. On the desktop this worked fine and I could also see
    the client connect to the VB application. How ever this is also not
    the case on the Mobile device.
    I’m using the following to send the data to the
    connected user in the working desktop version:
    quote:
    Dim myMsg As Byte() =
    System.Text.Encoding.ASCII.GetBytes(msg)
    myStream = myClient.Client.GetStream()
    myStream.Write(myMsg, 0, myMsg.Length)
    myStream.WriteByte(0)
    myStream.Flush()
    The following code is the listener function with handles new
    connections:
    quote:
    Dim client As TcpClient = serverHnd.AcceptTcpClient()
    Dim obj As New ClientObj(client)
    clients.Add(obj.Key, obj)
    I am receiving the information in flash with the following
    (simple testing code)
    quote:
    myXML.onXML = handleXML;
    function handleXML(xmlObject) {
    msgbox1.text += xmlObject+"\n";
    I hope someone can help me out of this problem because I have
    very little programming know how in visual basic but as far as I
    can see the code looks fine (and works).
    Any help would be appreciated.
    Thank you for you time
    Lars van der Bijl

    Hi Ramon,
    I am also facing the same problem... My driver name get changed after installing oracle 8.1.7.. I also don't know how to change back the driver name..

  • XmlSocket.onXML and xmlSocket.onData problem

    Hi,
    I am having a problem with reading information that is being passed from a C# server. When I use xmlSocket.onXML, the xml object being passed from the server does not have any elements at all. When I use xmlSockt.onData, I am able to get the following output with tace:
    <?xml version="1.0"?>
    <Packet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <UserID>5555</UserID>
      <UserName>Success</UserName>
      <Operation>RefreshUsers</Operation>
    </Packet>
    However, when I check the string variable that I used to store this string in debug mode, the value of the string is "". And when I try to create an XML object using var my_xml:XML = new XML(srcstring); I get the same problem as when I used the xmlSocket.onXML method. The xml object my_xml contains no elements at all.
    Can anyone help me out on this? Thank you.

    So I switched from XMLSocket to just plain Socket.
    I have this now:
      var sock:Socket = new Socket();
                sock.addEventListener(IOErrorEvent.IO_ERROR, onIOError);
                sock.connect("localhost", 7778);
                sock.writeUTFBytes(xmlMsg);
                sock.flush();
    But nothing gets transmitted unless I close the Flex app.
    I don't get this. What seems to be a problem?
    I read an API docs twice and it says that writeUTFBytes (or any other write methods) are just putting stuff in a buffer
    the flush() is the one that signals that the buffer content needs to be sent.
    I'm doing just that and still I get nothing on the other side unless I close the Flex app.
    Any suggestion?
    Thanks
    Greg

  • XMLSocket to localhost problem

    Hello!
    Doe anyone have experience with XMLSockets that have to connect to the localhost (or 127.0.0.1)?
    My flash application can connect to all other servers but not to the server the flash app resides on.
    The server accepts the socket but in flash the onConnect event has "false" as parameter. If I ignore this and start sending anyway, sometimes the data is send to the server.
    I run windows CE6.0 R3 with flash lite 3.1.
    Any Idea's?
    Thanks,
    John.

    Hi,
    don't know if it helps still, but i am using XMLSocket on Symbian: my FlashLite code accesses an natice C++ http server, using XMLSOckets.
    It works quite well, however i had some small tunings to do:
    * XML form (the one which is sent over to the server) has to terminate by '\0'. My code is adding an addtioanla '\0\ at the end, both on the FL code and on the server code
    * Of course, you have to publish your FL as "netwrok access"
    * .... and also to solve all the security problems (i.e. either crossdomain, or using Trusted subdir).
    Voila, not sure how much of ti applies to your plateform !
    Jacques.

  • Problem with XMLSocket

    Hello,
    I've created a litte server in java, that sends messages to a connected client (both running on localhost).
    In my Flex file I've implemented such a client with the use of XMLSocket. I can send messages
    from Flex to my server but the messages send from the server are not received on the Flex side. The
    listener function is not even called.
    Where is the problem ?
    Thanks in advance
    public function init():void {
          socket = new XMLSocket();
          socket.addEventListener(DataEvent.DATA, dataHandler);
          socket.connect("localhost", 3333);
    private function dataHandler(event:DataEvent):void {
          trace("Receiving: " + event);

    Hi,
    did you recieve connect event?
    close event?
    Do you use UTF-8 encoding for your data?
    Did you receive '\0' at the end of your data?
    Hope this helpful.
    If you don't resolve your peoblem post answers for my questions and java code.

  • XMLSocket Security Problem?

    Hello everyone.
    I've programmed a client and server side bandwidth testing
    system. The server side accepts socket connections on port 1234. I
    have a client side flash application which connects to the server
    side and uploads a stream of data. The server calculates the time
    is takes to receive the data thus determining the network
    bandwidth. The system appears to work perfect in the context of
    executing the flash client from the Flash compiler (i.e. Control |
    Test Movie "CTRL+Enter").
    The problem I'm having is that when I publish the flash .SWF
    and embed it into a simple .HTML file, the socket connection isn't
    working. If I try and run the .HTML file locally from my browser
    (i.e. URL=C:\Inetpub\wwwroot\Flash\Socket\Socket.html) it works
    fine. When I try to run the same file through my web server (i.e.
    URL=http://intranet/Flash/Socket/Socket.html) it fails to connect.
    I'm assuming this is some sort of security thing? Any help on why
    it works locally but not through my intranet would be greatly
    appreciated.
    Here's my client side flash code:

    I solved the problem. I think what happens is when a flash
    client attempts to make an XMLSocket connection to a destination
    server (where your server side applcation resides) on any port, in
    the context of a browser URL or non-local SWF file (i.e.
    http://www.yourserver.com/socketclient.swf),
    the flash client also checks the same destination web server's root
    directory for crossdomain.xml (via port 80). This file,
    crossdomain.xml, gives permission to the flash client to proceed
    with the socket connection. The crossdomain.xml file can be defined
    as follows:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "
    http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from
    domain="SERVERHOSTINGYOURSWFSOCKETCLIENT" />
    </cross-domain-policy>
    Just an interesting side note, by default, XMLSocket
    connections don't allow for port connections under 1024 unless
    configured to do so.

  • XmlSocket.send() problem

    Hi,
    I am running two flash clients on 2 different computers. For the first computer, I am running it through flash CS3. For the second computer, I am running through flash 8. Both clients connect to a server and communicates with it. The client on the computer that runs the flash CS3 works perfectly. However, the other client starts off well but after some time, it seems that the statement xmlSocket.send(my_xml); does not propagate the whole xml string and this causes an error on the server. I would like to know if this is due to versioning issues? It seems that once the client that runs on the flash 8 has sent a certain amount of data, the error will occur where the next xml string will be truncated.
    In addition, I have tried running the second client on the latest flash player instead of from flash 8. It seems to work alright in that there are no abrupt truncations of the xml string. However, another problem arises. The outermost node of the xml string always becomes undefined whenever some action is performed. This does not occur on the first flash client running in flash CS3.
    Thank you.
    Regards
    Dobson Han

    I solved the problem. I think what happens is when a flash
    client attempts to make an XMLSocket connection to a destination
    server (where your server side applcation resides) on any port, in
    the context of a browser URL or non-local SWF file (i.e.
    http://www.yourserver.com/socketclient.swf),
    the flash client also checks the same destination web server's root
    directory for crossdomain.xml (via port 80). This file,
    crossdomain.xml, gives permission to the flash client to proceed
    with the socket connection. The crossdomain.xml file can be defined
    as follows:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "
    http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <allow-access-from
    domain="SERVERHOSTINGYOURSWFSOCKETCLIENT" />
    </cross-domain-policy>
    Just an interesting side note, by default, XMLSocket
    connections don't allow for port connections under 1024 unless
    configured to do so.

  • XMLSocket connection problem

    Hi, I'm unable to connect to a remote host with XMLSocket if
    a previous
    connect() call to the same host/port pair has failed in the
    past.
    On the first connect() call, Flash attempts to make a
    connection (by
    sending 3 SYN packets). If none of those are replied to and
    thus the
    connection fails to establish, no more connect() calls to the
    same
    host/port pair do anything. They don't even result in socket
    activity.
    I've tried calling close(), creating another socket, etc. The
    only
    solution I've found is to reload the .swf file, which isn't
    really a
    pretty option. (My LocalConnections get lost)
    Is there any way to connect a XMLSocket to a host/port pair
    after such a
    call has failed once?

    Hi All,
    As an update, I have also tried to load a cross-domain policy file to allow access, but still having no luck connecting outside of the local trusted sandbox, inside flash after a publish preview.  When I go to the HTML file on localhost the server connection fails, every time.
    To my flash file I added the AS::
    System.security.loadPolicyFile("http://localhost/crossdomain.xml");
    And in the root directory of my localhost I added:the file crossdomain.xml, containing:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <!-- Policy file for xmlsocket://socks.mysite.com -->
    <cross-domain-policy> 
        <allow-access-from domain="*" to-ports="*" />
    </cross-domain-policy>
    In the final versin I will be more explicit in the domain and ports of the policy, but are simply trying to get it running at this stage so are using the * wildcards.
    Any help would be greatly appreciated.
    Best Regards
    Chris

  • Problem in Sending Multiple Message by XMLSocket

    Hi, I am getting error while sending multiple XML Object by XMLSocket.
    When i send message in first time by XMLSocket then server reads fine. Otherwise from second time, server always read the first response. So where i am lagging for sending the message with different types.?

    Hi, I am getting error while sending multiple XML Object by XMLSocket.
    When i send message in first time by XMLSocket then server reads fine. Otherwise from second time, server always read the first response. So where i am lagging for sending the message with different types.?

  • Problem with socket cross domain

    Hi guys,
    This is my cross domain file:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
    <!-- Policy file for xmlsocket://socks.example.com -->
    <cross-domain-policy>
       <site-control permitted-cross-domain-policies="*"/>
       <allow-access-from domain="localhost" to-ports="80" />
    </cross-domain-policy>
    I am placing it in my server.
    From flex i am running this:
    Security.loadPolicyFile("my server address");
    And yet I am getting this event:
    SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048"
    What can I do?

    Hello ILikeMyScreenNameNdCoffee,
    I had the same problem with XMLSocket and I used a policy server that runs
    on the remote server on port 843 and from Flex I load file before connecting
    the xmlsocket Security.loadPolicyFile("my server address:843"). If you want
    I can upload a version of my policy server or you can use the server policy
    from here
    http://www.broculos.net/tutorials/how_to_make_a_multi_client_flash_java_server/20080320/en
    Also you can read here more about file policy:
    http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_04.html.
    On Thu, Aug 19, 2010 at 5:40 PM, ILikeMyScreenNameNdCoffee <[email protected]

  • Problem with socket security

    Hi,
    I'm trying to make socket connection from within air application, but no way. I'm browsing google for almost 2 days, follow all possible solutions, but avidently I dont understund somthing cause I'm not able to do anything.
    Every time sandbox security violation.....  I need make some simple socket data exchange between my air, and OS. I do not have any web server and no any other kind of network ability. I write down stupid socket server, which is waiting for policy request, and for my other requests (it function 100%, tested with Telnet, so no way to have problem on my socket server side).
    The strange thing is that my application do not produce any request for socket policy file, neither at 843 port (for default), neither at my custom location with namual
    Security.loadPolicyFile("xmlsocket://ip:port"); call
    This is my primitive code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical">
        <mx:Script>
            <![CDATA[
                private var s:XMLSocket = null;
                private function test():void{
                    Security.loadPolicyFile("xmlsocket://127.0.0.1:25013");
                    if(!s){
                        s = new XMLSocket();
                        s.addEventListener(DataEvent.DATA, onData);
                        s.addEventListener(Event.ACTIVATE, onActivate);
                        s.addEventListener(Event.CONNECT, onConnect);
                        s.addEventListener(Event.DEACTIVATE, onDeactivate);
                        s.addEventListener(IOErrorEvent.IO_ERROR, onError);
                        s.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onSecurity);
                    s.connect("127.0.0.1", 25013);
                private function onActivate(e:Event):void{
                    debug.text += "Activated\r";
                private function onConnect(e:Event):void{
                    debug.text += "Connected\r";
                    var o:XML = <request cmd="10"/>;
                    s.send(o);
                private function onDeactivate(e:Event):void{
                    debug.text += "Deactivated\r";
                private function onError(e:IOErrorEvent):void{
                    debug.text += e.text + "\r";
                private function onSecurity(e:SecurityErrorEvent):void{
                    debug.text += e.text + "\r";
                private function onData(e:DataEvent):void{
                    debug.text += e.data;
                    s.close();
            ]]>
        </mx:Script>
        <mx:Button label="Test" click="test()"/>
        <mx:TextArea id="debug" width="100%" height="100%"/>
    </mx:WindowedApplication>
    Any help will be apresciated.
    Ladislav.

    Hi,
    It pass some time but if i remember well, my problem was that i did
    not terminate stream output form my server vs air application, and it
    returns this security error.
    When I send  '\0' at the end of my message it work correctly. Yes the
    server was my own written socket server (c++ using boost libraries).
    Laco.
    Sorry late response I'm on hollydays
    Staney G ha scritto:
    So, how did you walk around the problem?  Did you have a control on how server responds?
    My test case failed similarly.  However, the target server is a public web service.
    Will appreciate your answers!
    >

  • FTP client problem

    Hello.
    I'm trying to create a ftp client running on adobe AIR in flex builder.
    The fcommand socket work, but when i create the data socket, the command socket still work but if I tipe a new command, like PWD, i do not receive answer. Does someone know why?
    I don't see error events widh IO_ERROR or SECURITY error, so I suppose no error occours.
    here is the code
    import flash.events.Event;
                   import flash.events.IOErrorEvent;
                   import flash.events.MouseEvent;
                   import flash.events.ProgressEvent;
                   import flash.events.SecurityErrorEvent;
                   import flash.net.Socket;
                   protected var s:Socket;               // socket comandi
                   protected var s_dati:Socket;
                   protected function btn_connetti_clickHandler(event:MouseEvent):void
                        var aspetta:Boolean = true;
                        function connesso(evt:Event):void     {
                             //label_stato.text += "Connesso!";
                             // ora che la socket è connessa invia user e password
                             s.writeUTFBytes("USER **\n");
                             s.writeUTFBytes("PASS **\n");
                             // apre un canale dati passivo
                             //s.writeUTFBytes("RETR index.php\n");
                             s.writeUTFBytes("PASV\n");
                        function connessoDati(evt:Event):void     {
                             label_stato.text += "Socket dati connessa!";
                             if(s.connected)
                                  s.writeUTFBytes("\nLIST\n\n");     THIS COMMAND DOES NOT RETURN ANY OUTPUT
                             else
                                  label_stato.text = "CONNESSIONE PERSA\n";
                        function riceviDati(evt:ProgressEvent):void     {
                             label_stato.text += "DATA -> "+ s_dati.readUTFBytes(evt.bytesLoaded);
                        function erroreSicurezza(evt:SecurityErrorEvent):void     {
                             label_stato.text = "Errore nella sicurezza "+evt.text;
                        function chudi(evt:Event):void     {
                             label_stato.text = "Chiusura connessione";
                        function progresso(evt:ProgressEvent):void     {
                             var str:String = s.readUTFBytes(evt.bytesLoaded);
                             label_stato.text += str;
                             var arrS:Array = str.split("\n");
                             for (var i:int = 0; i<arrS.length; i++)     {
                                  //if(arrS[i])
                                  //label_stato.text += "->"+arrS[i]+"\n";
                                  var tmps:String = arrS[i].toString();
                                  if(tmps.substr(0,3) == "227")     {
                                       //label_stato.text += tmps+"\n";
                                       var IPport:String = tmps.substring( tmps.indexOf("("), tmps.indexOf(")") );
                                       var numeri:Array = IPport.split(",");
                                       var porta:Number = 0;     // numero di porta;
                                       var LSB:Number = numeri[numeri.length-1];
                                       var MSB:Number = numeri[numeri.length-2];
                                       label_stato.text += "Connessione passiva\n" + MSB+ " " + LSB+"\n";
                                       porta = (MSB *256) + LSB;
                                       s_dati.connect("ftp.******.it", porta);
                                       s.writeUTFBytes("RETR index.php\n");
                        function erroreIO(evt:IOErrorEvent):void     {
                             label_stato.text += "\nERRORE " + evt.text;
                        // crea la socket
                        s = new Socket();
                        s_dati = new Socket();
                        // gestione eventi
                        s.addEventListener(Event.CONNECT, connesso);
                        s.addEventListener(ProgressEvent.SOCKET_DATA, progresso);
                        s.addEventListener(IOErrorEvent.IO_ERROR, erroreIO);
                        s.addEventListener(SecurityErrorEvent.SECURITY_ERROR, erroreSicurezza);
                        s.addEventListener(Event.CLOSE, chudi);
                        s_dati.addEventListener(Event.CONNECT, connessoDati);
                        s_dati.addEventListener(ProgressEvent.SOCKET_DATA, riceviDati);
                        s_dati.addEventListener(IOErrorEvent.IO_ERROR, erroreIO);
                        s_dati.addEventListener(SecurityErrorEvent.SECURITY_ERROR, erroreSicurezza);
                        s_dati.addEventListener(Event.CLOSE, chudi);
                        s.connect("ftp.****.it", 21);
                   protected function btn_dati_clickHandler(event:MouseEvent):void
                        label_stato.text += tx_comandi.text+"\n";
                        s.writeUTFBytes(tx_comandi+"\n");

    Hi,
    I'm having the same problem, I fight with this for last week and nothing, I cant find a working example of socket connection on the internet, local work ok, but on server i get one of all of this errors all time:
    SecurityError–>Error #2048,
    *** Security Sandbox Violation ***,
    Warning: [strict] Ignoring policy file at xmlsocket://xxxxxxx.com:21 due to incorrect syntax.  See http://www.adobe.com/go/strict_policy_files to fix this problem.
    I read and try all adobe answers for the problem: Security.loadPolicyFile; crossdomain.xml...
    Updates, others webrowsers...
    I check all webpages about this problem and nothing.
    Follow some lines I try for last week:
    Security.loadPolicyFile("http://www.xxxxx.com:80");    or
    Security.loadPolicyFile("http://www.xxxxx.com/crossdomain.xml");
    s = new Socket("xxxxx.com",21)
    s = new Socket("ftp.xxxxx.com",21)  <<< this one dont work even local
    It worked fine from my local machine. But when I deployed it on my server...
    Is this some kind of bug?
    Anyone know a working example that i can check?

  • XMLSocket.onConnect - success is false?

    I'm using Flash MX 2004 and i've written a sample socket
    server in php. it responds when i telnet in from everywhere:
    * using telnet from the Win XP command line from my desktop
    * using raw telnet from puTTY from my desktop
    * using telnet from the linux command line on the server
    flash, however won't let me connect with and XMLSocket.
    XMLSocket.connect returns true but my onConnect function always
    receives success=false. I CANNOT FIGURE OUT WHY. How do i figure
    out what the problem is?
    Here's my actionscript:
    var host:String = 'mydomain.com';
    var port:Number = 1234;
    mySock = new XMLSocket();
    mySock.onConnect = function(success) {
    trace('this is my anonymous onConnect function');
    trace(' success:' + success);
    mySock.send('foobar is what i sent');
    trace('here we go, connecting to ' + host + ":" + port);
    var foo = mySock.connect(host, port);
    trace('connect attempted, foo is ' + foo);
    mySock.close();
    the trace results are this:
    ===trace===
    here we go, connecting to mydomain.com:1234
    connect attempted, foo is true
    this is my anonymous onConnect function
    success:false
    ===trace===
    How on earth do I figure out what this false results is for?
    I have put the following crossdomain.xml file at the root of
    mydomain.com:
    ===crossdomain.xml===
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM
    http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <!-- Policy file for
    http://www.mysite.com -->
    <cross-domain-policy>
    <allow-access-from domain="*" />
    </cross-domain-policy>
    ===/crossdomain.xml===
    I have also tried uninstalling flash player 9 and installing
    he debug version instead. the trace statements end up in
    flashlog.txt but this directive is totally ignored apparently:
    SecurityDialogReportingEnable = true
    I never get any security message or anything. I'm totally
    mystified.

    ALRIGHTY THEN. Thanks so much to all of your for helping so
    much.
    Given the resounding silence at this very very simple
    request, I suppose I must resort to a packet sniffer. I'll report
    back when I know more.

Maybe you are looking for

  • How to use different Vlans outside another gateway in sg-300 28?

    dear all how shall i use different vlans outside another gateway in sg-300 28? Example: vlan2 192.168.2.0/24 gateway 192.168.2.1 outside router gateway 192.168.2.254 vlan3 192.168.3.0/24 gateway 192.168.3.1 outside router gateway 192.168.3.254 should

  • Special character when changing password in sql plus

    Hi i'm having a problem with setting password for user's in sql plus. I get a ORA-00922 whenever I try to change a user's password to contain ! in it. See below. Do I have to escape special characters or something or this a bug? (Previously I've alwa

  • No Signal to External Monitor

    I use KDE and have a HP ProBook 6560b with a dock/port replicator.  My problem is that signal to my external monitor doesn't automatically work on login rather it be via VGA or DVI (currently hooked up over DVI).  I tinkered around with it and got it

  • Connecting Envy 5660 to AT&T wireless network

    Can the Envy 5660e be connected to an AT&T wireless router?

  • Using 'between' for literals inside 'where' clause

    Dear all, I run the following queries in 10.g XE HR sample schema: The first query is limited by characters between "I" and "S" where the second query is limited by words between "IT" and "Sales". My question is, how come the first query doesn't retu