Flex :: Cannot Connect To Socket In Same Domain

Dec 30, 2010

I have a Flex web app (compiled to regular SWF) that tries to connect to a (binary, not XML) socket on its own server. So if the swf is at [URL], the socket is [URL] This should be possible, AFAIK, but when I try to connect I get a security error saying that [URL] cannot access [URL]. Even though it shouldn't be needed, I also have a crossdomain.xml file containing

[Code]...

View 2 Replies


Similar Posts:


Flash :: Cant Connect AIR App To Socket.io?

Oct 8, 2011

I'm trying to connect an AIR application to socket.io, it's just not working.

[Code]...

View 1 Replies

ActionScript 3.0 :: Socket Cross Domain Policy

Jan 15, 2009

I have created a socket server on port 6666 because port 843 is in use on my mac.So when flash player request "policy-file-request" I return to it the cross domain xml, but I keep getting the security error that "cannot load data from".[code]As you see I receive the cross domain from the socket server.But I don't understand why flash player doesn't accept that?xmlsocket.connect("localhost", "6666");Does anybody have any idea why it throws that error "cannot load data from" ?

View 0 Replies

Flash :: Connect To Socket Even Though Policy Allows It?

Dec 31, 2010

In my Flash app, I'm connecting to my server like this:

Security.loadPolicyFile("xmlsocket://example.com:12860");
socket = new Socket("example.com", 12869);
socket.writeByte(...);
socket.flush();

At port 12860 I'm running a socket policy server, which (according to this document) correctly serves up my policy like this:

[Code]...

I get no security warnings, which I used to get before the policy server was in place. Still, the connection to port 12869 doesn't work. It's made (I can see with Wireshark and on the server), but no data is sent by Flash. It might be worth knowing that the SWF itself is served from example.com as well.

View 1 Replies

ActionScript 3.0 :: Connect To A Telnet Server Through A Socket?

Mar 20, 2011

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>

[Code]...

View 2 Replies

Java :: Connect To Socket Server From AS 3 AIR Application

May 12, 2011

I read through the method to connect to a socket server : [URL]. I wrote an AIR application to connect to the java server code, but the client cannot connect. What is missing in the code?

<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" backgroundColor="#D5F8C3">
[Code] .....

View 1 Replies

Actionscript 3.0 :: Socket Isn't Sending Any Data After The Connect?

Feb 24, 2009

I'm tring to write an instant messager implementation, but i got a problem with the initial socket connection.I need to send a GET request with some parameters to a server and it will reply with a seed number message server IP.

Code: Select allvar socket:Socket = new Socket("appmsg.gadu-gadu.pl", 80);
var response:String = new String;
var request:String = new String;[code]......

why the socket isn't sending any data after the connect,i also wrote a small pop3 client and it works fine.

View 1 Replies

.net :: Argument Count Mismatch On Flash.net Socket/connect()?

Oct 8, 2011

i am receiving this error "ArgumentError: Error #1063: Argument count mismatch on flash.net::Socket/connect(). Expected 2, got 0.".

I have created a .net tcp server that sends 1 byte of data while reading a file, now the flash client connects but i get this error and i don't receive any data at all.

[Code]...

View 1 Replies

ActionScript 3.0 :: Socket Client Works In Testing, Won't Connect Otherwise?

Oct 18, 2009

I made sure the playback security was set to network only on the publish settings menu. I have another program that connects to the same server without a problem, so I don't think it's a cross-domain policy file problem.

[Code]...

View 1 Replies

Media Server :: SSAS Can't Connect To Services Via IP; Only Domain

Apr 6, 2010

Is there some FMS-specific reason why a sendAndLoad function in SSAS couldn't connect to a site on an IP address? Are there any configurations that would need to be set to allow/deny this type of connection? We have a server instance that can only connect to sites hosted on fully qualified domains.

View 1 Replies

Media Server :: Can't RTMP Connect To FMS From Remote Domain

Dec 2, 2011

I cannot connect to an FMS server from a client on a another domain using RTMP
 
Locally running a flash client that uses nc.connect(rtmp://...) to connect - works.
 
But when the client is in another domain I get NetConnection.Connect.Failed in the netconnection onstatus.
 
I've put crossdomain.xml files on my FMS folders that allow access from any domain (*). Also the allowedHTMLdomains.txt and allowedSWFdomains.txt are set to allow any - though it's not just the live application I can't connect to, it's also any other app.
 
There are no firewalls blocking on the server. Port 1935 is available. FMS is set to listen to 1935. The server is accessible with other protocols (http) - but with RTMP it only connects when I try to connect locally, as mentioned.
 
What other reasons or settings can cause the connection to FAIL?
 
The server is FMS 4.5 Developer Edition.

View 1 Replies

ActionScript 3.0 :: Connect To A MySQL Database Directly Through The Socket Class?

Nov 2, 2006

is possible to connect to a mySQL database directly through the socket class?

View 1 Replies

ActionScript 3.0 :: Socket Class Unable To Connect To Internal Loopback?

Feb 16, 2011

I am building an AIR application where I receive UDP messages from Max/MSP using the Socket class. When testing in an internal loopback environment ( messages sent from 127.0.0.1 at port 7400 ) I can see the UDP messages being sent, as in: I can receive the messages I'm broadcasting in Max/MSP by listening to port 7400.However, the AIR app throws IO errors when trying to connect ( via the Socket class, using Socket.connect ) to aforementioned IP and port and I for the life of me can't find out why the app has no access to the internal loopback sending UTP ( if for instance, I start a Apache server at the same IP but at different port, the Socket class connects immediately to that IP - it won't receive data of course, but at least it can establish a connection )I am thinking the problem lies outside of the AS app and is an internal networking issue, I'd like to know if someone has experienced a similar error ( I'm on OS X, btw ) as I don't think it's a security sandbox error ( as the event isn't thrown, and the application type is trusted ).

View 1 Replies

Flash :: Connect Application To Nodejs Server Running Socket.io

May 9, 2011

i'm trying to connect my flash application to my nodejs server running socket.io. To connect via web-browser is no problem. Now the problem, when the socket-server isn't running i get an IOError in Flash what seams alright. Now when i start the server and try to connect again, i don't get an error, but the socket-server doesn't receive a connection either?!

View 1 Replies

Actionscript 3 :: Security Sandbox Violation, Can't Connect To Server Via Socket?

Mar 1, 2012

Before I start I should state I have read it all, I was following this, this and this (and more...) and still I cannot connect to our running server via Socket over the internet.

Here is what I try to in AS3:

[Code]...

We can see from the log output of the server that this is really sent to the connecting socket. A null byte is of course sent after the xml data. And after that, the server closes the connection. However, it seems that Flash somehow does not like it, as "Error #2048" still appears after ~3 seconds.

View 1 Replies

Flash :: Connect Properly To Optivote Device Through Local Socket Connection?

Oct 21, 2010

Optivote IR8 is basically a voting system with a bunch of remote controllers, which can send IR signals to a receiver, which is connected to a computer through a USB port. And I'm trying to write my own little software for that with Flash.Optivote receiver communicates with software through a virtual serial port. When I connect to that port through PuTTY, I can see signals whenever I press any button on the remote controllers. Although, when I connect to that port through Serproxy (which relays a socket connection to a serial port connection), the remote controllers don't seem to work. I just get the same signal every half a second or so, over and over. I'm guessing the receiver is trying to make some kind of handshake this way.

The thing I can't figure out is what PuTTY does that Serproxy doesn't to make the serial port connection work. Maybe there's some proper way to tell the other end when I connect?(I use Serproxy, because Flash applications cannot connect to a serial port directly, but supports socket connections)

View 1 Replies

Flex :: Actionscript 3 - Flex Socket And Erlang Socket Communication

Jun 29, 2011

I'm creating a client-server game. My client is a flex based game, and my server is erlang server. At the beginning, when I test directly my flex client in flash player, I can establish a connection easily to my erlang server through socket connection. And both can exchange data with no problem. The problem rise when I deploy my flex app at Apache http server, and running it using a browser by calling [URL] my flex socket sends message requesting for a crossdomain policy to my erlang server. So I create an xml message that represent a crossdomain policy, and send it back to my flex app as a response for that request.

Yet still I can't establish any permanent socket connection between my flex client and my erlang server. I know this because I add listener on my flex socket that will modify its internal state to CONNECTED, if a connection between client-server has established.

View 2 Replies

ActionScript 3.0 :: Socket Connection Cross-domain - "Error #2048"

Feb 3, 2009

I made simple java server on one pc and tried to contact it from another pc on LAN from localhost, so far so good, it worked flawlesly. But when I want to contact the java server outside the security sandbox(from webpage), it will throw me an error:

[Code].....

View 1 Replies

Actionscript 3 :: Socket.readInt() And C# Socket.Send() Different Values Of Int-variable?

Nov 19, 2011

When I send number (int)52 s.Send(BitConverter.GetBytes((int)872415232));, flash show me trace(socket.readInt()); 872415232 If i send 872415232, flash show 52.Why? And how it fix?

View 1 Replies

ActionScript 3.0 :: Post The Code For A Working Cross-domain Securityfile That Allows Access Only From The Same Domain?

Jun 1, 2010

post the code for a working cross-domain securityfile that allows access only from the same domain as all the flashfiles and xml files are in?used to be easy in as2 but i think i dont know what i need to know about it in as3..

View 3 Replies

Media Server :: Videos Start Immediately In Domain, 20+ Sec Delay Outside Domain

Apr 23, 2009

We are running FMS3 on Windows 2003 Server. Videos stream and play fine when inside our domain, but outside the domain the videos take anywhere from 20 or more seconds before playing.
 
After analizing the connections it was determined that the player is randomly trying to access ports until it gets to the one that works, but this is ONLY happening from people trying to view videos from outside our domain.

View 14 Replies

Actionscript :: Moving A Web Application From One Domain To A New Domain Flash/Php/MySql?

Jun 3, 2011

I have moved a web application from old domain to new domain. I cannot get Flash to engage. I have changed the domain in flash_images.php file to the new domain. I have a flash_box.swf file and I have a js file these are the only flash components that I see--old domain is e.g. www.example.com new domain is [URL]..I am not a flash developer, how do I get flash to work on the new domain?

View 3 Replies

Actionscript 3 :: Let Run Flash-app Only On Page(domain), Not Local And Not On Other Domain?

Dec 9, 2011

I created some game and would like to let the users play it only on my domain, so to forbid to play it offline or put on some other site. Is there a way to do it? Somehow check domain or so?

View 1 Replies

Flex :: Force Flex Apps To Load On A Local Domain?

Jan 11, 2010

I have a situation where I need my swf to load from a domain. Currently my flex set up always loads a SWF from file [URL]...

View 1 Replies

Actionscript 3 :: Connect To AMFPHP - NetConnection.connect() Returns TypeError: Error #1009

Dec 8, 2011

UPDATE: Now I've moved the AMFConnection var declaration to outside the functions in Main, and commented out some trace() commands, and now it gives new errors:

Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion
at AMFConnection/init()[/Users/Jan/Downloads/amfphp1/AMFConnection.as:32]
at AMFConnection()[/Users/Jan/Downloads/amfphp1/AMFConnection.as:23]

[code]...

I'm trying to connect to AMFPHP on a server (with Flash AS3), and the swf borks when it reaches the .connect() stage. To make things easier (?) and more reusable (?), I've put all the NetConnection mechanics into a separate class, AMFConnection, which I call from the Main document class like this (details changed):

public function testConnection(e:*=null):void {
var conn:AMFConnection = new AMFConnection();
conn.table = "some_table";

[code]...

AMFConnection actually starts the connection and calls the AMFPHP service with the function gogogo(), and here's where the connect() NetConnection function just won't work. Here's the main section of the AMFConncection class

private var _netConnection:NetConnection;
private var _responder:Responder;
function AMFConnection()

[code]...

It also fails to display the stage, instead showing the loading dots. Now, eventually I'm going to move this application to the same server as the AMFPHP service, but even when I try it there with a relative url, instead of an absolute one, it still breaks down at connect(). I've tried changing the publish settings from local only to network only, to no avail.

View 3 Replies

Actionscript 3 :: Flex - I Resize The Entire Flex App Just Like Acrobat Connect?

Jun 26, 2010

ive been pondering how to create the same type of resizing that acrobat connect does. i did read the documentation of percentage sizing. and i have implemented it. but its not how i want it to look. to see an example: [URL] sorry Jeffrey to use you as an example. :) just try to resize your window and see it... thats what im looking for.

View 2 Replies

Flash :: Flex Socket Crossdomain

Apr 28, 2010

I am trying to connect to a socket server from flex. I read, on adobe's documentation, the client automatically sends a "request-policy-file" xml element to the socket before allowing it to be opened, and should receive a policy file.

The client sends the xml element as expected, My server receives it (on the port I want to use, port 6104) and replies on the same port with:

[Code]...

View 1 Replies

Java :: When To Use Socket And When To Use XMLSocket In Flex

May 18, 2011

In what situations should i use Socket class or XMLSocket when trying to connect from Flex to a Java Server that is going to listen to a port?

View 1 Replies

ActionScript 3.0 :: Flex PHP Socket Server

Nov 28, 2008

I want to test a simple PHP socket server with Flex, server seems to work fine when trying to test using telnet, but Flex doesn't display any responses, here's my code:[code]

View 4 Replies

Flex :: Access Swf From Another Domain?

Oct 20, 2010

When trying to load a swf from a domain different from my swf's domain, I get this error[code]...

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved