PDA

View Full Version : How to cancel loading dynamic data..



Hiro
August 24th, 2004, 09:43 PM
Hi all, this is my first post to these forums - i have been visiting it a bit lately and it seems great.

I have started working with Flash MX again and I am making a presentation CD.

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

RvGaTe
August 25th, 2004, 02:07 AM
why not loading all the online and offline data into an array or any other object, and then start the presentation...

and when you load a page, just refer to the data-holder instead of the online/offline data...

it might take longer to load at beginning, but it solves allot of problems... :)

Hiro
August 25th, 2004, 06:55 AM
Hmm thats not such a bad idea :). I can do it while the intro is loading too.. i will have to play with variables more..

Hiro
August 25th, 2004, 07:20 PM
It would still be nice to know if its possible to break the action of the other button that is occuring, anyone know how to do this, or if its even possible?