Solved

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

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

744 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

10 Experts available now in Live!

Get 1:1 Help Now