Topic: How to cancel loading dynamic data. (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=23044" title="Pages that link to Topic: How to cancel loading dynamic data. (Page 1 of 1)" rel="nofollow" >Topic: How to cancel loading dynamic data. <span class="small">(Page 1 of 1)</span>\

 
H][RO
Bipolar (III) Inmate

From: Australia
Insane since: Oct 2002

posted posted 08-24-2004 09:46

I have a dynamic text field and a menu with buttons. Some of the buttons tell the dynamic text field to load data from online files, and some load it from offline files (which is obviously quicker).

The problem i have is
-I click Button 1, which loads online data
-I click Button 2, which loads offline data BEFORE the data for button 1 is loaded.

What this does is loads the data from button 2 which is fine. But then it overwrites it with the data from button 1 which was taking longer!

Is there some way i can tell it to stop running actionscript for button 1?

Thanks

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 08-26-2004 02:54

I suspect once you have requested data from a server there is no easy way to say "forget it"

But - it might be possible to disable buttons until data has loaded so that you can't make another request. Might be a variable at _root called , let's say, "busy" with a boolean datatype. Clicking a button could set "busy" to true. An olLoad callback could set it to false. Your button click functions could check for the value of "busy". If "busy" was true the button wouldn't work

Make sense?



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu