PDA

View Full Version : Loop for loading CGI parameters


Gamin
02-19-2001, 09:09 AM
Hi there,

I have a loading problem using perl parameters in Flash.
I have many variables to send and it take a long time to load in flash.

For the moment I make a loop testing the content of a sending variable but it works only in ADSL and local.

With a modem connexion or when the database is to slowler the movie stop the loop and return anything. I think I didn't test the good thing in my loop (perhaps with a ifloadingframe but I don't know how to use it on params).

Did someone have a good tips to avoid this ?
Thanks

Jesse
02-20-2001, 08:07 AM
So what's the porblem? Your variables aren't loading in time from your CGI? How about using a looping MC which test every 3 seconds (or something) if some variable is loaded. When I load from text files and databases I always load in an extra variable at the end called 'loaded' and set it's value to '1' or 'true'. Then I can have a looping MC which tets every so-often if loaded==true, and if it doesn't, then I know to keep waiting for my data to load. If it does, I can tell my movie to proceed.

The PHP Counter tutorial in the tutorials section uses a similar mechanism, check it out.

Cheers

Jesse