Solved

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

Posted on 2008-06-18
4
652 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

jQuery is a JavaScript library that greatly simplifies JavaScript programming. AJAX is an acronym formed from "Asynchronous JavaScript and XML."  AJAX refers to any communication between client and server, when the human client does not observe a…
Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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.

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now