ActionScript 3.0 :: Connect Flash To A Server Using Sockets Connection?

Oct 5, 2009

how to connect Flash to a server Using Sockets connection using in AS3.

View 16 Replies


Similar Posts:


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

Flex :: Sockets - Open A Connection Back To The Server?

Aug 4, 2009

I want to open a connection back to the server using Flex so I can stream chat messages to the Flex front-end. How do I do this and does Flex enforce any same-origin restrictions on ports or subdomains?

View 1 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

Sockets :: Can Flash App Running In Browser Connect To Localhost To Get Data From Another App?

Dec 21, 2009

it seems that Flash was supposed to run in a sandbox in the browser. But, if Flash can get data from a remote server, can it similarly get data from localhost IP on the same machine? In other words, can I use a Windows app that provides a TCP socket on localhost to feed data into a Flash app?the answer is yes at least for the case of an SWF file hosted in the file system, URL...(turns out the localhost access error can be fixed if you add the SWF app to some security whitelist). Still wondering if this can also be done for SWF apps hosted on the network.

View 1 Replies

Flex :: Error : Unable To Contact The RDS Server "data Services On Tomcat (localhost) Connection Refused: Connect

Dec 5, 2011

I'm making a program in flash builder 4.5 using WebOrb 4 (which is fantastic, I might add). When I go to deploy, however, it gives me this error:

>There was an error during model deployment for xxxxProgram.
>
>The server returned the following message:
>
>Unable to contact the RDS Server "Data Services on Tomcat (localhost)."
>
>Connection refused: connect
>
>Do you want to continue launching your Flex application?

I've poked around online for a solution, but for the most part I either don't understand them (forum grammar can be somewhat obtuse) or the answer in the post doesn't apply.

View 1 Replies

Flash - Servering Mulitple Flv Files From Custom Webserver While Keeping The Sockets Open Stops After The 6th Connection

Jun 28, 2010

This is driving me nuts and because it's a combination of various technologies together I have a hard time tracking the problem. I wrote a tiny HTTP server that serves .flv files; these flv files are encoded on the spot. The flv files are encoded with adobe's screencodec (I started with libflv but that was too buggy so I ended up implementing my own flv encoder). For the problem below it doesn't matter which codec I use or if I serve plain flv files instead of on-the-spot generated ones (the problem also occurs if I just send 12 h264 encoded files).

I also have a swf that I coded in as3. The as3 opens 12 connections to my server and requests 12 different flv's and just displays them as 12 different videos on the page. I tested the setup with Firefox and chrome and am using the latest flash client (version 10). The HTTP server is pseudo streaming those files; e.g. it tells the client the file is of mime type video/x-flv, tells the filesize is 2GB and just starts streaming. For sake of completeness here's a header it generates:

[Code]....

View 1 Replies

Mysql :: Database - Connection With Sockets Or PHP?

Jan 9, 2012

So, we want to move out from Air (Adobe stopping support and really bad implementation for the sqlite api, among other things). I want to make 3 things:

Connect with a flash (not web) application to a local mysql database.
Connect with a falsh (not web) application to a remote mysql database.
Connect with a flash (web) application with a remote mysql database.

[Code]...

if you can connect with socket wit mysql server, why use a web server (for example with php) to connect like a inter connectioN? why not connnect directly? I have done this a lot of times, using AMFPHP for example, but wouldn't be faster going directly? In the case of accessing local machine, it will be a more simple deploy application that only require the flash application + mysql server, not need to also instal a web server.

View 2 Replies

Flex :: Sockets And Looping - Getting The Valid Connection?

Jan 13, 2012

On my network I have a couple of pc's all running a bespoke server which will return the username of the person logged in when queried.I have the following piece of code.

private function LoopAndList():void
{
var loopSocket:Socket;
var fourthOctet:Number = 6;

[code]....

Now when this runs it doesn't work as I first thought. The iterations go though. the fourthOctet value is decremented. But somethinjg strange happens. You will notice in the above code that I have a hardcoded IP address in the loop. I have put this there to ensure that there is always a valid connection. So am aware it will always be connecting to 192.168.0.4.

But the connection only happens on the last connect call.

The ouput is:

192.168.0.6
Connecting to 192.168.0.6
192.168.0.5
Connecting to 192.168.0.5

[code]....

View 2 Replies

ActionScript 3.0 :: Sockets Not Closing Data Connection On Windows

Nov 10, 2009

I've written a basic FTP client to allow me to upload files through the browser without using the FileReference.upload() func (because it's damn slow). I've got all the socket logic worked out and it works for one upload. When the upload is completed, the FTP data socket is closed by the socket.close() func which triggers a response from the command socket and starts the whole process over again. This logic works perfectly on my Mac in both Safari and FF.

I can upload files and cancel uploads and it all works as I want. When I test it on Windows (IE 8, FF 3.5, Safari 4 on WinXP and Win7) it is busted. I've tracked down the problem to the fact that on Windows, the socket.close() function is not causing the server to close the connection. I don't know if this is because it's not sending a proper command or what... but that's where it's at.

View 4 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

ActionScript 3.0 :: Flash : Local Connection Gives Error #2082: Connect Failed Because The Object Is Already Connected?

Apr 2, 2010

I am trying to connect to FBJS bridge. It keeps giving me the following error.When I'm opening only one connection and I do not have any other window open.

ArgumentError: Error #2082: Connect failed because the object is already connected.at flash.net::LocalConnection/connect()at BabyVille()[C:Documents and SettingsuserDesktopabyvilleflashMain ProjectsrcBabyVille.as:56]This is my code :

public class fbjsTest extends Sprite[code]....

View 5 Replies

Flash :: Professional - Use The Sockets - Setup Server?

Feb 10, 2010

i'm trying to develop a multiplayer game in AS3, but i don't know how to use the sockets, how to set up my server, actually i don't know how to start, i want to build a peer to peer game, which will have a "room" to find players, it will be a cars game, i already have all the rest of the game, i just need to be able to make it multiplayer

View 3 Replies

ActionScript 3.0 :: Flash XML Sockets - Get A Simple Socket Server Test To Work?

Jul 11, 2010

I've benn trying to get a simple socket server test to work for days now and it seems I'm not getting very far.Basically I just want to send some data from flash to the php script and have it echo it out, or anything at all like that I've been working from this tutorial http[url]....I have this basic flash class which just sends a string to the server:

Code:
package{
import flash.net.XMLSocket
import flash.display.MovieClip[code]...

The server side php is the attached script (pretty much this http:[url]....So I keep the php running on my server then run the as class, what happens is after a while (presumably the 15 second script limit in as) I get this error:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: .../networking.swf cannot load data from website.com:9980.at base()

View 1 Replies

Flash :: Media Server - Connect To Own Server To Watch Streaming Video From Another Computer?

May 19, 2010

How can i connect to my own server to watch my streaming video from another computer?

View 10 Replies

ActionScript 3.0 :: Connect To Same Local Connection More Than Once?

Feb 27, 2010

Is it possible to connect to the same Local Connection more than once?

What if I have a Flash signature with same flash movie on the page 3 times and I click on the button on the first movie. Can the other 2 movies do the same action the first movie is doing?

I thought thats what LocalConnection was for but when the second movie tries to LocalConnection.connect it says the connection is already connected.

View 3 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

Media Server :: Swf Hosted On One Server Connect To Live Stream From Another Server?

Apr 28, 2010

One server - is streaming server with Flash Media Interactive Server 3.5that host the application with asc files in FMS application directory.Second server - is the IIS web server that host thehtml,aspx,swf etc.. files.So basically i heve swf file on one server that have to connect to live streaming via rtmp on different server with different ip address.I did not find any clear explanation on this crossdomain rmtp issue.ys only HTTP can use crossdomain.xml policy filebut not rmtp.So what policy security procedure need to be done in order to enableswf file hosted on one server to connect and show rmtp live cam broadcasting from another server?

View 2 Replies

Playing With Sockets + IRC Server?

Jun 16, 2009

var s:Socket = new Socket( "127.0.0.1", 6667 );
s.writeUTFBytes( 'WEBIRC cgipass "cgiirc" this.is.testing.com 127.0.0.1' );
s.writeUTFBytes( "NICK DaBit
" );

[code]...
 
It works to a point, it pings out as if I never did PONG in response, but I never got the PING message which tells me I'm not listening in on the connection correctly. What do I need to do instead? Btw this is all I have, it's all on 1 frame.
 
Here is my Output thing:
 
Attemping to launch and connect to Player using URL C:Documents and SettingsDavidMy Documents est_socket.swf
[SWF] C:Documents and SettingsDavidMy Documents est_socket.swf - 3088 bytes after decompression
:127.0.0.1 NOTICE AUTH :*** Looking up your hostname...

[code]...

View 1 Replies

Media Server :: Number Of Connection Allowed In The Free Developer Ediiton Of Flash Media Server?

Mar 27, 2010

I would like to know the number of connection allowed in the free developer ediiton of Flash Media Server.

View 4 Replies

Media Server :: Secure Flash Media Streaming Server 3.5 (live Stream Connection)

Aug 23, 2010

I have Flash Media Streaming Server 3.5 (not Interactive) running on RHEL5.5 x86_64 Linux.All is working well, however how do I prevent unauthorized access to connecting to the live stream and streaming content?How can I setup the server to require a user and password to stream live media to the server?I am new to this product and I have been reading some documentation but I have not found a clear cut answer on how to force a username and password to connect to the server to stream live content only.I am using the Adobe FMS Apache install, what files need changing?[code]I want to lock down a person from connecting to the server on the public internet and starting a live stream?Can this be done with a user name and password?

View 13 Replies

Media Server :: Sophos Antivirus Can Stop Taking Connection By Flash Media Server?

Oct 13, 2010

Our flash media server  stops taking connection sometime. Any one have any idea about sophos antivirus?

View 8 Replies

Flash :: How To Connect To Media Server

Jul 9, 2010

I just had the Adobe Flash Media Server Demo version installed on our server, not my localhost. I'm also using Adobe Flash Media Live Encoder for the encoding. What I don't understand is what will the correct FMS URL be? I currently have Red5 installed and it's working just fine and I can understand what that URL is.... I'm just not sure what the URL would be for the FMS. I had the tech at the hosting company do the install

[Code]...

View 4 Replies

Flash :: Media Server 4 Cannot Connect

Jan 30, 2011

I installed the Flash Media Server 4 and it works fine. However I uninstalled it from the control panel and reinstall it and it is no longer working now. The error i get in the server start screen is

"We are unable to connect to the network. We apologise for any inconvenience caused."

View 1 Replies

Media Server :: Cannot Connect To Flash

Feb 21, 2012

I've successfully installed Adobe FMS 4.5 and using FME 3.2 to stream.  I can make the connection to live.stefanientertainment.com and see the demo page and run all the bitrate tests.  When I go to Interactive mode and put in the Server address: rtmp:/live.stefanientertainment.com/live and the stream: cameraFeed, I get "Error: cannot connect to Flash Media Server! Error code:NetConnection.Connect.Rejected". Any ideas here.  I've looked thru a ton of documentation and everything looks correct.

View 2 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

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

ActionScript 3.0 :: Connect To C# Server From Flash Client Using SSL/TLS?

Sep 15, 2010

We are currently in the process of trying to connect a c# server from a flash app. This hasnt been a problem so far - we have simply used the Socket class.We now have a requirement to encrypt the stream using SSL/TLS. This is no problem in c#, but much more problematic on the flash side. So far we have found two options: As3crypto lib, and AIR 2.0 SecureSocket. However, neither option has proved to be successful.

As3Crypto - TLSSocket

Using this method when we execute the code, the server throws an exception - this appears to be due to As3Crpyto's PARTIAL support of TLS.

AIR 2.0 - SecureSocket

We are currently using the latest Flex 4 SDK. We have imported AirGlobal.swc to alllow us to create a SecureSocket in a similar manner to the TLSSocket. The code builds but does not run - some File Not found error or something - probably because SecureSocket is not found in the runtime. I assume this is because AIR is intended for desktop applications rather than apps embedded in a browser.

So, now we're stuck. We have the option of encrypting the data instead using some PGP algorithm available in the As3Crypto lib. However, we would much prefer to encrypt the stream using something like TLSSocket or SecureSocket.

View 1 Replies

ActionScript 3.0 :: Server To Connect Two Flash Movies In A LAN?

Aug 11, 2009

do I need a server to connect two flash movies in a LAN? Can I just do it in flash or do I have to use a third programm to let two flash movies on two machines communicate.

View 1 Replies

ActionScript 3.0 :: Flash Does Not Connect To Server In Some Computers

Nov 24, 2010

there is an app that has been finished (i hope) and it seems to work ok, this flash loads about 1Mb of flash app, then loads some stuff from the server via xml, generated through a script. as i said, it works ok in some computers, but somebody tells me that in other devices, the flash loads fine, but it gets stuck while loading from the server (it wont go further than the splash theat says 'loading contents'). Since is flash, i assume it is computer independent (it is not like the html, where each device may chow it different according to browser and setup; since is flash it will show and load just as the flash would load everywhere else); but as it seems it gets stuck right when loading the xml, after the flash has loaded (the flash loads the xml from the server), what may be causing this? is there any 'flash option' that may be interfering the flash from loading the xml content?

View 6 Replies







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