dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Socket Connection

  1. #1
    Member
    Join Date
    Sep 2003
    Location
    Verona, Italy
    Posts
    61

    Socket Connection

    Hi all.

    I'm trying to connect to a telnet server through a Socket.
    On that server, I setup a crossdomain.xml file:

    <?xml version="1.0" ?>
    <cross-domain-policy>
    <allow-access-from domain="*" to-ports="23" />
    </cross-domain-policy>

    and I connect to this server like this:

    Security.loadPolicyFile("example.com/corssdomain.xml");

    var socket : Socket = new Socket();
    socket.connect("example.com", 23);

    Offline it works, but online it doesn't...
    Any help?

    Thanks

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Russia: Western Siberia
    Posts
    268
    go to edit - publish settings - flash
    and change "local playback security" option to "Access network only"

    or try to use Security.allowDomain("yourdomain"); in your swf
    Last edited by caseyryan; 03-20-2011 at 02:43 PM.

  3. #3
    Member
    Join Date
    Sep 2003
    Location
    Verona, Italy
    Posts
    61
    Quote Originally Posted by caseyryan View Post
    go to edit - publish settings - flash
    and change "local playback security" option to "Access network only"

    or try to use Security.allowDomain("yourdomain"); in your swf
    I'm in Flash Builder.. when can I find that option?
    Thank you again.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center