2 way communication between the Flash and a web Service

  • Thread starter Thread starter John
  • Start date Start date
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
 
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?
 
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
 
Back
Top