Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2008-06-18
4
Medium Priority
?
673 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 500 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 500 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

916 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