Solved

How do I use  Flash as a socket connection for AJAX?

Posted on 2008-06-18
4
655 Views
Last Modified: 2013-11-11
I want to make a rich web application that pretty much needs to be in constant contact with the sever. For this I want the interface to be in Javascript with standard AJAX, but the connection to be sustained through a FLASH socket.

Anybody have code examples or links to tutorials on how to achieve this?

Thank you.
0
Comment
Question by:zoropoteame
4 Comments
 
LVL 5

Accepted Solution

by:
coldboy earned 125 total points
ID: 21819716
It may be simple. You may achieve it via ExternalInterface of Flash. Flash and Javascript can communicate with each other via External Interface.
See this: http://blog.guya.net/2006/06/19/understanding-flash%E2%80%99s-externalinterface/
0
 
LVL 4

Assisted Solution

by:emphaticDigital
emphaticDigital earned 125 total points
ID: 21825859
If you want a flash movie to maintain constant contact with a server, you will have to write a socket server daemon to accomplish it. (a socket server deamon will 'listen' for connections to a certain port and respond automatically) Probably the best language for this is Java, since it is robust and cross platform, but it is also a pain to master. You can write a server daemon also in PHP but I haven't done it yet. Adobe also has an open source socket server called 'Blaze' but I don't know if they released the final version yet. Let me know if you want more info as this is a serious undertaking.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how can i extend ? 2 43
How do I make a variable that shows up on the screen, and keeps score? 3 27
How do specify keydowns in JavaScript 3 44
Jquery 2 11
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question