2 way communication between the Flash and a web Service

J

John

Hi!

I am creating a webservice that needs to communicate with the Flash
component.
I am creating the Flash component myself so can add any type of
functionality to it.
I need to know how can I achieve 2 way communication between the Flash and a
web Service
Any suggestions will be greatly appreciated


John
 
G

Guest

I did something similar with php for a project using Flash MX 2004 pro,
although there is a great book that helped me out:
Macromedia Flash MX Professional 2004 for Server Geeks
by Nate Weiss
It may lead you to a solution without using flash remoting.

What version of Flash are you using?
 
S

Samuel R. Neff

WebServices and Remoting (and XML and LoadVars) will only give you
request/response communications initiated from the Flash client. You
can't use these to push data to the client (what I believe you mean by
2-way).

If you need an always-on two way connection then you need to use
either FlashComm or XMLSocket. I don't have a link onhand but there
are XMLSocket servers implemented in .NET that you can easily drop
into your project, or if you want totally custom functionality you can
implement one yourself (it's just a TCP socket that sends and receives
null terminated XML messages). The complex part of an XML socket
server is message serialization/deserialization/routing.

HTH,

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top