I have a PHP process that does a bunch of stuff and I want to send feedback to the Flash client that calls it, as the request is being processed. However, since I’m listening for the COMPLETED event, I don’t get the feedback until the PHP completes execution (at which time all the buffered messages arrive at once).
I tried using the PROGRESS event but that seems not to work (unless I’m not using it right).
Is there something to this on the PHP side that I may be missing? Or is Flash simply not designed to get updates from the server in a regular URLRequest… I can use a socket for this, but I would much rather not have to!
It can be done. Key is flash.net.URLStream.
I’m using it this way, (code is not complete but I think you get the picture):