ActionScript 3.0 :: TCP Connection From A Flash Client?

Mar 30, 2009

I have a client written in as3. I want the client to open a TCP connection with a server in order to transfer textual values. I need this connection to run through port 80. Is it possible? Can the server send back textual values as well? Can the text be transferred in XML without creating the file on the clients computer?Is it possible to serialize the textual data?

View 1 Replies


Similar Posts:


Media Server :: Find Client Disconnected When Client Lost Net Connection?

Oct 27, 2010

how can I find on fms server that client disconnected if if client disconnected due to power cut off. I client manually close the application then onDisconnect on server is called but if due to power cut off it does not called.

View 1 Replies

Actionscript 3 :: Flash Client And HTTP Connection With Server

Dec 12, 2010

Can a flash client program communicate with a server using HTTP connection like it would do in a JAVA-oriented fashion:

String URLS = "http://" + s.getHostName()
+ ":8888/Producer/getItems";
try {

[Code]....

View 1 Replies

Java :: Authorized Flash Client To Server Connection

Feb 22, 2011

I'm building a Flash-based Facebook game with a Java backend, and I'm planning to use a RESTful approach to connect the two of them (not a persistent socket connection). I'm using the AS3 library to connect the client to Facebook, so that's where I have my session information stored. However, how do I authorize client connections back to the server? I can't leave the callback URLs open since that'd let people manipulate game state without playing the game. I need to make sure that the calls are coming from a valid client and through a valid session.

At the moment, users have no direct login to the backend server -- it's all handled through the client frontend. Can I pass the Facebook OAuth2 access token to the backend in a way that the backend can verify its validity? Should that be enough to trust a valid frontend connection?

I could do a two legged OAuth signed request or just use a simple shared secret, but the keys would have to be packed in with the flash client, which makes that almost useless for this use case.

View 3 Replies

Java :: Flex - Flash Client To Talk To A Server Through A Full-duplex Connection?

Sep 16, 2010

My client is in Flash/Flex (game with chat) and it will be talking to a Java server. What is the best way (protocol / interface) for my Flash client to talk to my server? I heard about Flash Remoting MX, but it is a request / response mechanism. I could always request something and wait for asynchronous notifications from server. Then request again, implementing something like a Comet server.Anyways, what is the industry standard for this type of communication: Flash Client talking to Java server, supporting asynchronous "push" notifications from server.

View 4 Replies

Java :: Detect When Flex Client Closes The Connection?

May 13, 2010

I have a Flex application that connects to a BlazeDS server using the StreamingAMF channel. On the server-side the logic is handled by a custom adapter that extends ActionScriptAdapter and implements FlexSessionListener and FlexClientListener interfaces.

I am asking how can I detect which "flex-client" has closed a connection when for example the user is closing the browser? (so I can clean some infos inside the database)

I tried using the following:

1. To manually manage the command messages:

@Override
public Object manage(final CommandMessage commandMessage) {
switch (commandMessage.getOperation()) {

[Code]....

View 3 Replies

Ajax :: Establish A TCP Socket Connection From A Web Browser (client Side)?

Nov 8, 2011

I've read about WebSockets but they don't seem to be pure "sockets", because there is an application layer protocol over them. "ws:"Is there any way of doing a pure socket connection from a web browser, to enliven webpages?Here are my random stabs in the darkApplets sockets provided by Java (need java installed)Flash sockets provided by Flash (need flash installed)But about HTML5, Why are they called WebSockets if they aren't Sockets?

View 3 Replies

Media Server :: Flvplayback Stops Playing But The Client Is Still Listed As A Connection In FMS 3.5

Apr 7, 2010

I have a live streaming application using RTMP. Sometimes the playback works fine but sometimes it stops without any trace or errors in the log file, while still appearing as a connected client.

View 7 Replies

Professional :: Publishing .fla Project Including Client - Server Socket Connection

Nov 20, 2010

I have designed with Adobe Flash Professional CS5 a .fla project that integrates a client - server connection. After publishing it, I have the following issue:- when running the generated .exe file for Windows, then the connection to the server works perfectly- but when I am running the published .html file, then nothing is sent to the server.

I have tried to change the Publish Settings. When setting the Local Playback Security in Flash menu to "Access network only" instead of "Access local files only" then the last packet that was send using the .exe file is resent once and that's all (the html client does not receive the response from the server and the next connection attemps generate data transfer). I guess I have to change some security settings somewhere but I didn't find which.

View 1 Replies

Media Server :: Stop Live *Stream* Per Client, And Keep Connection (for Chat)?

Mar 10, 2012

Is it possible to stop a (live) Stream from playing for a user, but keep his NetConnection open for eg chat functionality?I only see a setBandwidthLimit to accomplish something similar to this, but then, if BW is set to 0, chat won't work.Why isn't there a built in feature to do something of seemingly common necessity like Client.stream.stop/change function to stop or change what video playback the client sees?

View 2 Replies

Flash :: Flex - Using Media Gateway Application - Status Is Not Getting Update Like: "Connection Failed" Or "Connection Success"

Dec 17, 2010

I got a IP Communications new account having following paramters:

[Code]...

Its showing me connecting ... Status is not getting update like: "Connection Failed" or "Connection Success". how to use the above information in this app,

View 1 Replies

Java :: Flex To Failed Connection, Scrapbook Successful Connection?

Sep 13, 2011

Im trying to make connection from flex to java and from java to mysql. I managed to connect to java, but having error that class not found: com.mysql.jdbc.Driver. But i downloaded mysql.jar, included it added to library, and connection works when i testing it from clipse scrapbook. Dont know what to do, i spend last couple days on this.

Class.forName("com.mysql.jdbc.Driver");
String username = "username";
String password = "password";

[code]....

Basically the solution was simple. Everybody keeps saying to put jar into lib folder, so i done it, but i wasnt realised that i have to put into my servers lib directory, not app lib directory and this miserable mistake cost so much. Anyway i hope this will help for some newbie like me.In this particular situation im using red5, so i putted it into my red5 dist/lib directory and "surprisingly" its started to work.

View 1 Replies

Media Server :: End A Connection - Use To Add A Function That Kills The Connection?

Mar 16, 2010

we have a two way webcam + mic connection set up using FMIS. we use to add a function that kills the connection?

View 2 Replies

ActionScript 2.0 :: Client To Client File Transfer

Nov 19, 2008

Can we perform client to client file transfer, client to server can be done by FileReference. but how do we do client to client transfer, for example if a user wants to send file to another user to whom he is chatting online.

View 3 Replies

Actionscript 3.0 :: Client To Client Streaming?

Mar 17, 2010

I am trying to build a client-to-client streaming program - client 1 has a webcam and client 2 will connect to client 1 and be able to view the webcam. Is this possible using 2 swf clients? Can someone point me in the right direction as to what commands would be used to connect the two clients. I have tried: binary sockets Connect() where each clients points to the other and they both time-out NetConnection to try to point each client to one another to establish a connection, but no luck with that either; this seems more oriented towards streaming content to a flash media server rather than to another flash client.

View 1 Replies

Actionscript 3 :: Client + Grails Server - Processing Audio At The Client And Sending It Back To The Server

Mar 8, 2012

We're writing a flash application that can download a MP3 file, convert it to a Sound object, get the raw data and make some processing (like adding sounds, change octaves). After the processing, we want to send the data back to the server in chunks, so the server will be able to glue the data together and recover the new generated file. The problem is: if we send to the server "wav" pieces of sound, we are able to glue them together without any problem in the generated file. However, if we convert each wav piece to a mp3 file (so we can send a smaller file to the server) and join the mp3 files at the server, the result is a sound with some problems at the merge point.

This is how we load the mp3 file from the server:

sourceSnd.load(new URLRequest("sample url to mp3"));
sourceSnd.addEventListener(Event.COMPLETE, carregou);

This is how we convert each piece of mp3 to bytearray and wav:

[Code]....

View 1 Replies

Flash :: Access Dial Up Connection?

Oct 7, 2009

I've got a project on my hands, an interactive kiosk. I've created the interface in Flash, but I have some issues I can't get past. First of all, I want to create an emergency call feature, where the user presses a button and the kiosk dials the emergency number (112 for Europe). Now, how can I make the Flash movie call upon Windows' dial up connection, dial a number, establish a connection then disconnect?

View 4 Replies

Professional :: Connection Flex/Flash To PHP

Mar 29, 2010

i found this link online about connection flash/flex to php. [URL]
 
basically what we are trying to do is connecting the flex login and get authenticated through the php/mysql database.

View 6 Replies

Flash :: Establish An SSL Connection From A Socket In It?

Sep 26, 2010

Is it possible to establish an SSL connection from a Socket in Flash?

View 1 Replies

Actionscript 3 :: Use TCP/IP Connection To Server From Flash?

Jun 13, 2011

How to use TCP/IP connection to server from flash?I use ActionScript 3 and Flash CS4.I want to put module on site, which connects to server and get fresh info from it.

View 2 Replies

Flash 9 :: Checking The Internet Connection

Oct 21, 2008

Is there a way to continually check the user's internet connection from within Flash?

The one way I've seen is to load a small file using loadVars, and if that file loads successfully, then the connection is good.

But is there something in System.capabilities or System.security that might be a better option?

View 1 Replies

ActionScript 3.0 :: Flash App Secure Connection

Aug 12, 2009

I have a Flash app that makes periodic calls (using URLRequest and URLLoader) to the same server that hosts it, to check if the current session has expired or not.The problem with this is a man in the middle can spoof a valid response.Is there a generally accepted way to validate a response?Would using 'https' in URLRequest(url) invoke https protocol, would that be sufficient? I'm not a security expert, but would that check if the site is who they say they are, just like the browser?

View 0 Replies

ActionScript 3.0 :: Facebook Connection Using Flash IDE?

Sep 24, 2010

how to make a connection with Facebook using AS3 and the Flash IDE.

I must of tried over 50 tuts by now and none seem to work. Obviously the update of the API causes issues however I've yet to find one tutorial which actually works and can bring in profile info like name, friends list and profile pics.

View 9 Replies

Actionscript 2.0 :: Flash Using Dial Up Connection?

Oct 6, 2009

I've got a project on my hands, an interactive kiosk. I've created the interface in Flash, but I have some issues I can't get past. First of all, I want to create an emergency call feature, where the user presses a button and the kiosk dials the emergency number (112 for Europe). Now, how can I make the Flash movie call upon Windows' dial up connection, dial a number, establish a connection then disconnect? I know that Flash can't use Windows services directly, so how can I accomplish this?My second issue is that I also would like to create a photo-shoot system, where the Flash movie takes a snapshot from the webcam, saves it as a file, then the user needs to input his email address and the file is sent by email as an attachment.

View 1 Replies

Flash - Connect To A SSH Server Through A Telnet Connection?

Dec 1, 2009

Is it possible to connect to a SSH server through a Telnet connection?I am trying to connect to an SSH server from Flash, but there is no OpenSSH implementation available in ActionScript. I can successfully connect to a Telnet server and execute commands.

I am not able to make any changes on the machine with the SSH server. The machine I am connecting with is running Windows XP SP3. I am willing to get whatever software for the Windows machine that is necessary.

View 6 Replies

Flash :: (as3) URLloader Keeping Connection Alive?

Feb 1, 2010

I have a little problem with a simple URLLoader,it simply just loads the data from an url, and processes that data, nothing complicated. But, when ever i run it, it leaves the connection open. At the bottom of the browser it says:

Transfering Data From www....

The data is read sucessfully, so it should close the connection? but doesnt seem to want to do it. Is there anyway to close all open connections, or somehow remove such message?

View 1 Replies

Detect That TCP Connection Has Been Refused Using Flash.net.Socket?

Aug 3, 2010

There is a flash movie which is using flash.net.Socket to connect to a server. But there could be a situation when the server is not running, hence nothing is listening on the port socket is connecting to.

When I do "telnet hostname port" I get a fast connection refused error. But flash.net.Socket does not invoke any event (see below), but silently waits for socket timeout. For me it is important to reduce time needed to detect non-existing server as much as possible to be able to reconnect to another server in the cluster.

I've tried the following events, but to no avail:

close
connect
ioError
securityError
socketData

None of these is invoked in such situation.

Is there a way to detect that TCP connection has been refused using flash.net.Socket?

View 3 Replies

Flash :: Establish Connection Of A Site With A Database?

Aug 24, 2010

How can I establish connection of a Flash site with a database(i.e. MYSQLetc)?

View 4 Replies

HTML5 Web Sockets (TCP Connection) With Flash Fallback

Sep 20, 2010

I read about a project that enables the developer to program a HTML5 web sockets application that is compatible with older browsers by automatically falling back to using a flash method.

View 1 Replies

Actionscript 3 :: Check For Internet Connection In Flash?

Nov 24, 2010

How do I check for an active internet connection in Flash using Actionscript 3?

View 2 Replies







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