Search code examples
javascriptflashactionscript-3socketsxmlsocket

connecting javascript to php socket to communicate with Flash


I'm trying to build a projection installation for a university project, I want the audience to be able to communicate with the installation with their mobile phones.

This is what I'm trying to do:
- My Flash application will be running on a computer connected to the internet and will be connected to an XMLSocket hosted on my server.
- I need a javascript page which the audience can visit, mouse clicks (touches) will then send data from the javascript page to the socket server.
- Flash application will receive the data and so on..

Is it possible? I've been looking around for various resources, but they all require a flash app to be on the same page, which is not what I want.

I just need a standalone javascript page to be able to talk to a flash app.

Any suggestions or ideas for possible work arounds will be greatly appreciated.

Many thanks,
Will


Solution

  • Yes definitely possible. The server sits between the two (Flash and JS), they don't need to know each other exist. JS sends data to the server and Flash pulls it down.