ActionScript 2.0 :: XMLSocket Over Port 80?

May 3, 2005

On this page it says "The XMLSocket.connect method can connect only to TCP port numbers greater than or equal to 1024"This makes it hard to get a chatserver to work through a firewall.BUT I recently discovered on this page that you can set up "policies" for your flash movie that allow it to run on port 80.

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Serial Port Communication - Read Input Data From A Serial Port

Jul 24, 2009

In a project that I'm working on, I have to be able to read input data from a serial port. The input data will be very simplistic in nature. I'm guessing more like a on/off, yes/no, true/false style of operation.I have found some examples in other languages, but nothing in AS3 or AS2. Could anyone send any sample code or a link to a tutorial that gives me some lead way on this? Which approach is better, going with a Flash projector piece, or building it in AIR? The final piece will be on a PC based system.

View 2 Replies

Port C++ To Swf With Alchemy?

Feb 12, 2010

Alchemy allows users to compile C and C++ code that is targeted to run on the open source ActionScript Virtual Machine (AVM2).

View 1 Replies

Flex XMLSocket Over Ssl?

Aug 29, 2009

i am writing a flash app that receives its data over a XMLSocket. On the testmachine that worked really fine, but now the data will be ssl secured. Is there any XMLSSLSocket or something similar available? If not XMLSocket a normal SSLSocket would be a great help as well.

View 2 Replies

Port 80 Socket Limitation?

Jun 28, 2009

I don't need to deploy an HTTP server and all the connections are made on port 80, the default HTTP port, which is generally not blocked by firewall.Unfortunatly at the end of my work I realized that the flash socket component has some limitation on using port 80.[URL]As nobody is interested by this report, I now think that this limitation is done on purpose by Adobe. I don't know exactly why, may be to force to use their data service product.

I can understand that. But what I am hangry about is that nowhere in the documentation of the socket component there is an information about this limitation. I guess lot of people lost time trying to reach an unreachable goal ! And most of the time you find the problem at the end of the work because local connection is working ok on port 80.

View 1 Replies

Apache Server W/ XMLSocket?

Aug 17, 2011

I have a perl socket on my apache server that correctly takes input from sockets and sends it back out to every socket connected to the perl socket. I have tested the perl socket, and it works correctly.
When I launch the Flash in the IDE, as a flash program, it functions correctly with the perl socket.
However, when I try to launch the Flash in a Browser on my apache server, it tells me it is unable to connect to the server.However, I am seeing from feedback from my perl socket, the flash connects for about a half of a second, and thats it.

What could be the problem, do I have to include code in the flash to allow XMLSockets to connect in a browser as well? Is there certain things I need to do with my apache server to make it work?

Also if I 'Preview as HTML' from Adobe Flash CS4, it does not connect.

View 3 Replies

Actionscript 3 :: XMLSocket Works In WIN EXE But Not On SWF?

Nov 22, 2011

I'm trying to make a socket client in FlashAS3 for my socket server written in nodejs. I also have a mobile app client that communicates with it.

In AS3 I wrote some test code that works perfectly when I publish and run Windows EXE file but when publishing to SWF and opening in browsers it does not connect to server. Even all that "imports" do not help. The Code:

[Code]...

View 2 Replies

Media Server :: Disabling Port 80 On FMS?

Jul 1, 2010

I am new to the Flash Media Server and have a question on its use of ports. Now if a server has IIS and FMS and one wished only to stream flash (VOD). Could I edit the fms.ini file and remove port 80 from adaptor.hostport?
 
In my thinking I would stream over port 1935 and would lose the ability to progressive download over port 80.Now I do not ever want to use progressive downloading so no issue so far. In addition I can now run my IIS server on port 80 for my administartor console into FMS.  All my clients are internal and thus I do not need a stream on port 80.
 
Is my thinking sound or am I misssing something?

View 1 Replies

Flash :: Port Python App To Silverlight?

Jan 9, 2010

Is there any such effort been made?

Some more info:

it's client application (gui intensive)

By porting I was thinking of cross-compiling.

View 2 Replies

Flex :: Way To Monitor USB Port With Flash?

Feb 21, 2010

I want to write an application that monitor the USB port, and when something is connected should show the contents of the drive (image viewer) automatically.there is any way to do that with Flex/Flash directly?or i might program another application in C in order to monitor the USB port and then comunicate with the front-end application with sockets?

View 2 Replies

Flash :: Fms Port Error After Installed

Mar 26, 2010

I installed fms 3.5 and actually am running apache for php in 8080 and want to make this fms service in different port and made it as 8083 while installing,

After installed when am starting fms using

./fmsmgr server fms start

it shows error message and i checked in messages file it gives already that port is used by someone

"Mar 26 03:59:51 u15393552 Adaptor[12576]: Failed to initialize listeners for adaptor admin, FMS is already running or other adaptor admin"

View 2 Replies

Flex :: Pass Data From Port To Xml()?

Mar 31, 2011

AM reading data from port in the form of bytes.my data will be like [code]...

View 3 Replies

Android :: Which Version Of AIR Should Be Used To Port Application

May 9, 2011

We have an AIR application which is running in client-server mode as a desktop application. Our application runs on AIR version-1.5;Flex version 3.5. We want this application to be ported to android. Will AIR 1.5 work with Android? if not which version of AIR should be used with Android? And also, Can I configure my Flex Builder to partucular version of AIR SDK? I am getting confused with AIR 2.0, 2.5 and recently released flex Hero SDK for mobile platforms.

View 1 Replies

Flash :: Port A C-like Enum To Haxe

Sep 22, 2011

I need to port a C-like enum to Haxe:

enum Items
{
item1,
item2=0x00010000,
item3=0x00010001,
item4,
[Code].....

But Haxe doesn't allow default value it seems. How can I do this? My real enum has hundreds of entries and for those with default values I must preserve the values.

View 1 Replies

Flex :: Configure Port For BlazeDS?

Dec 12, 2011

I've downloaded BlazeDS 4 and installed in on my Tomcat server. How can I make it to listen to port distinct from 8080? I change port in channels configuration in services-config.xml, and my client application sends requests for new port, but they failHow can I make server listen to custom port?

View 2 Replies

Port A Flash Website To Iphone

Jan 16, 2012

I would like to know if i could download the .swf file the site uses and still be able to access the site from the file? I know this is a little complicated but i'm new here. simply, download site access site servers from computer file.

View 1 Replies

ActionScript 3.0 :: Socket Connection To Port 443?

Jul 16, 2009

I am able to establish socket connection to a remote machine by first loadind the policy file. But the same thing is not working if i am trying to connect to the same remote machine & 443 as port No. In policy file the connection is allowed to all ports.

Is there any thing else to be done. I am geting sandbox violation error.

View 1 Replies

ActionScript 3.0 :: Security Server On Port 843?

Jun 24, 2010

I have a socket server running as ROOT on an ubuntu machine on port 843 that sends:[URL]..On my home computer running the TestMovie operation, everything works. BUT, when browsing to the SWF, unless I check and answer policy requests on port 8010 nothing works.

SO, how does the master policy work? I expect that every call from xmlSocket.connect("mydomain.com", 8010) will query port 843 for a master policy. But, it appears that they don't, instead always sending a request to port 8010.

Also, on another note, for testing reasons is there an easy way to send ASII to a port in the same way as one would type into a terminal?

View 0 Replies

ActionScript 3.0 :: Port Number Stripped From URL?

Sep 26, 2011

I am trying to connect to some web service on server to get a RSS feed.It connects to the web service on the server. But then afterwards, it strips the port number of the URL. For example:But then, when I try to call a method of that web service it says:o the port is stripped from the URL, can anybody tell me why this might be?I have tried connecting to this service on my local network with the same port number, then it works fine, port number not stripped

View 0 Replies

ActionScript 3.0 :: XMLSocket Error #2048?

Aug 6, 2009

Im looking for a solution for the Error #2048 from Flash. I have a server program developed in Java using the class xSocket and it works fine. It manage the clients from Flash. Well, once i installed the server app in my domain "97.225.158.110" and running the client developed in Flash from my PC within Flash environment, it connects to the server with no problem. But, if i upload the flash to the domain and load it in a web explorer, it doesnt work. Well, i have been seeing many web pages mentioning the policy file and i will show you how i have done it: In the the Java App i have a event handler for incomming data where i idetify the incomming string:

Code:
if(data.equalsIgnoreCase("<policy-file-request/>")) {
Main.Log.append("Enviando archivo Politica Seguridad");
nbc.write("<cross-domain-policy><allow-access-from domain="*" to-ports="8090"/></cross-domain-policy>�");[code].............

Well, the java server app receive the string policy request and it should answer with the quoted file but the Flash never receive it and in a minute the Error 2048 appear.

View 2 Replies

XMLSocket Works While Testing In CS3, Not In A Browser?

Aug 16, 2009

I am sure that I am missing something simple but I am doing an overhaul of a flash chat application that I wrote a few years back.I have everything humming along in Actionscript 3 and it works well when I test the .swf in Flash CS3 Pro but when I publish it and view it in the browser, I get no joy.I can see the flash plug-in retrieving the crossdomain.xml in my web server's root directory but in the browser, the XMLSocket Object fails to connect I installed flashpolicy server that is responding on port 843, but again, through the browser, the XMLSocket Object fails to connect.I have tried both Firefox and Safari browsers with the same result.I have swapped out the XMLSocket Object for the Socket Object and I am able to connect to my socket server, from within Flash CS3, but not from a browser.

View 3 Replies

Web Development :: Can XMLSocket Send More Than Once In Frame?

Nov 10, 2009

I have a XMLSocket and I call send twice in the same function. The first send works but the second does not? Does XMLSocket have a restriction to only send one message per frame? Do I have to queue messages and have an onEnterFrame function that checks the queue and sends one message for a frame?

View 1 Replies

Flash :: Can't Connect To Server With AS3.0 XMLSocket

Feb 7, 2010

I have a server that I have written in Python and I'm trying to connect to it via Flash's XMLSocket. I know for sure that this server is working properly as I have used it successfully with multiple non-Flash client applications. For right now, I just want to connect to the remote server with an SWF residing on my local disk. From what I understand, this means that I do not need a security policy file since the SWF is not in another domain. I have also confirmed that the security sandbox property of the file is set to local-trusted, so the SWF should be able to connect to servers and retrieve data from them. Here's the important code from the AS file:

[Code]...

View 3 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 :: Read Data From An XMLSocket?

May 24, 2011

While using Socket, i am able to read the data as

while (socket.bytesAvailable)
{
textArea.text += socket.readUTFBytes(socket.bytesAvailable);
}

How can i read the data while using a XMLSocket? Is it enough to use xmlSocket.toString() ?

View 2 Replies

ActionScript 3.0 :: Xmlsocket With Wireless Connection?

Jan 19, 2009

i am using this code to connect to socket

Code:
function configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(DataEvent.DATA, dataHandler);
dispatcher.addEventListener(Event.CONNECT, connectHandler);
dispatcher.addEventListener(Event.CLOSE, closeHandler);
dispatcher.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);

[Code]...

View 2 Replies

ActionScript 3.0 :: XMLSocket Not Receiving Data

Aug 4, 2009

I'm writing a flash chat program using XMLSocket.It's connecting and sending data just fine. The server is sending the data back just fine (I checked the packets on Ethereal), but Flash is just not receiving any data.[code]The server is a Java server written with the NIO classes.

View 2 Replies

ActionScript 2.0 :: Delay For XMLSocket Messages?

Jun 18, 2003

I am writing an XMLSocket Flash program and basically on startup, i call a funcion initialize, which connects the socket to the server and sends a message. Now I need to to wait for several startup messages from the server before I can continue. I need this to time out if they are not received.

View 2 Replies

ActionScript 2.0 :: XMLSocket.onData And UTF-8 Zero Bytes?

Aug 6, 2007

I'm currently playing around a bit with Java and Flash's XMLSocket to get them to talk together. The Flash documentation doesn't mention this anywhere, so I assumed that Flash's XMLSocket sends out its data encoded in UTF-8 just like XML.load expects its XML files to be UTF-8 encoded (and won't take anything else even if you tell it to!). This seems to be correct, because I've had Java send the string back as UTF-8 and Flash displayed it fine.However, there is a slight complication. XMLSocket's EOF marker for both input and output is a single zero byte, but certain high-codepoint Unicode characters get encoded in UTF-8 containing several zero bytes. When I have Java send back a byte sequence containing one of these multi-bytes characters, XMLSocket's onData seems to fire for the zero bytes that are part of the UTF-8 encoded string, as well as the zero byte EOF markerCode:61 62 63 00My Java server receives this sequence successfully and echoes it back to Flash identically. So Flash then receives:Code:61 62 63 00XMLSocket reads this, fires onData when it hits the last zero byte, and all is fine.

View 1 Replies

ActionScript 3.0 :: XmlSocket Return DataHandler?

Mar 24, 2009

Basically, I have an actionscript file as follows:

Code:
package {
import flash.display.Sprite;
import flash.events.*;
import flash.net.XMLSocket;

[code]....

And ALL I'm trying to do is return the information from the dataHandler to my main flash application.So just to emphasise I don't want it to trace the output (which it does OK), I want to return it as a String to my main application.

View 3 Replies







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