Solved

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

Posted on 2008-06-18
4
662 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

732 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