-
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
-
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.
-
Originally Posted by caseyryan
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|