communicate between Server (delphi) and  client (flash)

Posted on 2006-05-05
Last Modified: 2010-04-05
my purpose , write server in delphi  and client in flash

but client cannot receive anything from server.

I don't know how to do it, can anyone show me working code both delphi and flash.
Question by:lhquang
    LVL 28

    Expert Comment

    I never programmed in flash (just displaying and all that) but from what I have read there is the following way to interact with a flash:
    - the application is displaying the flash file and it can send/receive data to and from the flash file(if my memory serves me correctly, usinf fscommand or something similar)
    I also know that you can do connections between a flash application and a server (for example the flash games sending scores to server), but I believe that this is done via the http protocol. for this case I have found the following:

    Author Comment

    thank ciuly , but flash can use socket and connect to every port of server , not only http protocol, I used XMLSocket but client cannot received data from server.
    LVL 28

    Accepted Solution

    I see. can you give more info on how you did you code it and how do expect it to behave? maybe even some code? I ask this not even thinking that this is a firewall or system  configuration issue, which I hope it's not :)

    basically, on the delphi server part you must have a listening socket (a server socket of some kind) and on the flash client part, a client socket of some kind (xmlsocket as I understand) after this is done, you must define a protocol for your communication:
    which part send what and when. because if the server waits for the client to send something and the client waits for the server to send something then both are waiting and thus nobody sends anything.

    Author Comment

    thank all, I can do it now
    LVL 26

    Expert Comment

    I took the source code to this article:

    and converted it to Delphi 6. It shows how to communicate between the two.
    I don't have the source here with me now but I will look for it when I go home
    for lunch in about 3-4 hrs.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    761 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

    7 Experts available now in Live!

    Get 1:1 Help Now