PDA

View Full Version : LoadVariables - Access to params while still loading


ronnyh
08-06-2001, 11:44 AM
Hi there.

I have a problem _reading_ variables while the file loading is in progress. The file consist only of dynamic variables in this form:

&DocumentTop=true&BeforeDial=90612345&CancelLink=&CallDialingFirst=true &CallConnectedFirst=true&CallDialingSecond=true&CallConnectedSecond=true &CallEstablished=true&CallComplete=true&DocumentBottom=true&

The variables are beeing sent as the server are processing each step of the server function, and the complete transfer takes as long as the hole process takes to finish. The varaiables are beeing returned by the server one by one with several second between each one. (Total time could be several minutes)

The problem seem to be the internal handling of the LoadVariables function, as it seem to _cache_ all the variables until the loading of the file has finished.

Is there any way to be able to access thes variables before the complete loading?

nicewebguy
08-09-2001, 08:09 PM
I don't think there is a way to do this - Flash has no support for pushing data (as far as I know).

An alternative scenerio could involve initiating the server process with one call and then making additional calls every so often to check on the status of the process. A simple mechanism for this would be to have your server script write out its status to a web accessible html file (with proper expires meta tags) which Flash then repeatedly loads and displays.

A more complicted scenerio could involve a server script that actually checked to see if the first script's process has finished, but this isn't for the faint of heart.

Good luck,
doug