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


Similar Posts:


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

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

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

Media Server :: Connection Timed Out When Open The Html File

Jul 19, 2011

i opened the html file and it said connection timed out?

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

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.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

Flex :: Open Database Connection Only One Time?

Mar 14, 2011

When working with CRUD operation in flex, I want to know how to open only one time for all update and delete operations. How can I do this?

View 2 Replies

Flex :: Building Java Multiplayer Server Game - Difference Between Sockets And Webservice?

Aug 8, 2011

I'm building a multiplayer card game using Flex on the client side and Java on the server side and I wanted to know if I must sockets and the accept method in order to connect users to the server for in order for them to join a game room or create one or to chat.In the past I've learned how to build a game server which both sides are JAVA and connection was in sockets but now days the client side will be in FLEX which has few ways to connect to a Java server (XML,SOAP,BLAZEDS(AMF)) and I find it hard to understand how to write the Java server in order to do all the features of a game server,especially managing the rooms and sending data back to the users.

In the sockets way, when a user was connecting to the server and he had opened a room, this room was opened on a thread and who ever was joined that room then he was connected to the same thread and sending the messages to the right place was easy, so the problem is understanding how to do the same using SOAP or BLAZEDS.

View 4 Replies

ActionScript 2.0 :: Open Multiple XML Sockets With An Array

Sep 2, 2011

I'm currently working on a project where I need to access multiple devices with differing IP addresses and Ports. I've defined "buttons" that will go to specific devices depending on the user input (sorry, hard to explain but I'm sure you'll get it). Everything works like a charm but I'd really like to see if there is a better way to code the following (maybe with an array) but I can't get it to work.

I will have up to 20 different devices so I'd like to streamline the code instead of having a bunch of "if" statements. As you can see, it's all the same just incrementing the TKsocket name.

[Code]...

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

Java :: Connection Between Flex And Failing On Server

May 5, 2011

I am working on a project using flex/java/blazeds. This worked fine on local host however now that i have uploaded to a tomcat server(online), after having an error with the service uri, this error has now seemingly been solved, yet I am receiving another error which is as follows:

[Code]...

View 1 Replies

Php :: Best Service/connection Combo For Flex/Server Implementation?

Nov 29, 2010

I'm starting a Flex app on a pretty big reporting engine and want to know how best to connect to a Postgres Database. I'd like to create a REST API architecture so I can use the service for more than just the Flex app(mobile possibly).These are my options I've found:

Datatype: either XML, JSON or AMF

Flex Service: HTTPService or WebService

Server(using PHP): ZendAMF, custom json_encode implementation, Zend_Rest_Server

I've got my views all mapped out, and the api functions designed. Basically what I need is advice on which Flex / back-end service combo to provide.

View 2 Replies

Actionscript :: Connection From Program To The Server Using XAMPP Server And Program In Flex?

Oct 26, 2010

i have the following code ]

[Code]...

but no connection established what is the reason behind not know help required and one more thing XAMPP is installed in D: drive.

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

Flex :: HTTPService.disconnect() - No Tcp Connection Drops And Script Keeps On Running On Server Side

Mar 20, 2012

I got a mxml file that launch a script on my http server through a HTTPService.send() call. Since the script on the server side takes a LOOOONG time (it could take even more than a hour) i would like to drop the connection between my air application and server when a button is clicked. Don't know why but calling HTTPService.disconnect() is totally useless... No tcp connection drops and script keeps on running on server side. No HTTPService.cancel() nor set HTTPService var to null worked.

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

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

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

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

Sockets :: Write A Client In Order To Send Data To The Server?

Jun 19, 2011

I have written an ActionScript 3 class that is a Server Socket and accepts connections.I want to write a client in order to send data to the server. The client will be a mobile browser. I think that i will use javascript. Is it possible to connect to the server from mobile environment?

View 1 Replies

ActionScript 3.0 :: VideoError: 1000: Unable To Make Connection To Server Or To Find FLV On Server

Aug 19, 2010

I'm attempting to make it so that when a person fails to fill in blank textboxes in another app that someone else made and I have nothing to do with but affects the XML node Path, my flash file will look instead at DefaultPath if it can't load whatever is in Path..

Here is the sample XML

Code:
<abatch>
<Title>Title!</Title>
<Path>/content/main/broken/path</Path>

[code]....

Is the code I've been trying to use but it won't do what I want. I keep getting this error:

VideoError: 1000: Unable to make connection to server or to find FLV on server

The XML is being properly loaded. Everything else is working. I just need to know that when something is blank it will look at the DefaultPath. I don't seem to be able to get it to do that.

View 4 Replies

VideoError: 1000: Unable To Make Connection To Server Or To Find FLV On Server?

Jun 15, 2007

I've spent a lot of time in the past couple of weeks learning Flash. I developed a Flash (swf) file that plays a Flash video (flv) with cue points. It all works very nicely locally, but when I put it on the server and try to access the html file, the Flash control is white (nothing visible) and a popup error message comes up with this error.I've looked all over the web (including non-English sites), tried playing with all the Publish settings I could think of (version check, local/network access, omit trace, enable debugging) and tried adding error handling code to the swf file itself. I've also tried changing the path for the flv file to be relative, absolute and somewhere in between, but nothing works.Does anybody know what can cause this error?

VideoError: 1000: Unable to make connection to server or to find FLV on server
at fl.video::VideoPlayer/play()
at fl.video::FLVPlayback/http://www.adobe.com/2007/flash/flvplayback

[code]....

View 10 Replies

Media Server :: RTMFP Connection - Change The NetConnection Url To The Remote FMS Server

Sep 27, 2010

I'm using the RTMFP protocol to publish and play video and audio, but i'm with a little problem. I installed the FMS 4 Development Server in a Windows Server machine located in our local network and it works perfectly. In order to deploy our application, we have a remote server with a fresh install of the Ubuntu 10.04 Server, and the FMS 4 installed in this server. In other server we have the Java and Flex application, which will be used in the client browser.

The problem is that when trying to change the NetConnection url to the remote FMS server, which is the Ubuntu server, the netconnection can't connect to it. When changing to the RTMP protocol it connects, but with the RTMFP don't. I can't find any information in the log files or anything else.

View 9 Replies

Media Server :: Make A Local Streaming (connection) To The Server,by Seting The FME?

Jul 21, 2011

I managed to make a local streaming (connection) to the server,by seting the FME at rtmp://localhost(or my IP)/live.But now i want to make a non local streaming.

View 2 Replies

Media Server :: Event Viewer Warnings: Connection Rejected By Server. Reason : [AccessManager.Reject]

Jan 5, 2012

Looking through our windows event viewer application logs, I've noticed alot of these warning listed. What would cause they messages to generated? Anything to be concerned about? It seems they're all created in between live event streams - after a live stream has stopped published and before the next live event stream begins, about a 20 minute break.

[Code]...

View 3 Replies

Actionscript 3.0 :: Xml Gallery - Giving VideoError: 1000: Unable To Make Connection To Server Or To Find FLV On Server?

Sep 29, 2009

i have coded my first xml gallery, it loads jpgs and swf files.the swf files have each a video component on stage that controls the related FLV file.Testing the gallery locally I had no problem at all, but when uploaded to the server the jpgs works fine while the swf files (containing the videos) keep trhowing this error:

VideoError: 1000: Unable to make connection to server or to find FLV on server
at fl.video::VideoPlayer/stop()
at fl.video::FLVPlayback/stop()[code]....

View 3 Replies

Media Server :: Restrict An Edge Connection To Core Server?

Feb 15, 2012

I want to restrict unauthorised edge servers connecting to my core server . How do i do it?

View 1 Replies

Media Server :: Live Stream Connection Limit Per Server?

Nov 5, 2011

I Need to Broadcast 20,000 to 40,000 Live Streams.! (Bitrate : 128Kbps / Viewers Per Stream Apprx-10 Server : Adobe FMS Server Amazon EC2 Instance - Bandwidth Apprx 100mbps)My Question is1. How Many Concurrent connections Possible for one Adobe FMS Server? (Amazon EC2 Instance)2. is this possible to use RTMFP for this process? (20,000 Connections Via Amazon Adobe FMS Server EC2 Instance )3. if Possible Over RTMFP then How Many Developer Keys Need for this Operation. (or) Pricing Details for the Developer Key. (or) Any Separate Key[s] Available For Amazon EC2 Instance?

View 1 Replies







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