The wait you're seeing isn't the XML file loading, it's Flash parsing the
XML. I'm guessing it's pretty large.

You see "Start A".
You begin the XML load.
You see "Start B".
The XML finishes loading.
Flash starts parsing the XML into an XML object.
...this takes a while, and Flash is so busy it can't fire off
setIntervals...
Eventually Flash gets the onLoad from the XML.

You can make your own custom XML parser that breaks things up over a few
frames as needed. There's code for it floating around on the net.

On 8/8/07, Mendelsohn, Michael <[EMAIL PROTECTED]> wrote:
>
> Thanks for the reply, Ian.  I did change the order, but everything still
> stops.  I tried to observe the flow with a timeout, and what it does is
> trace "Start A" and "Start B" really quickly, then everything delays,
> then when the xml is loaded, the movie "works" again, and the other
> trace statement starts to happen.  Shouldn't the interval be firing even
> while the XML is in the loading process?
>
> function timeTest():Void {
>         trace(Math.random());
> }
> function setDefaultPanels(documentType:String,
> documentLanguage:String):Void {
>         _root.attachMovie("loading", "loading", 10);
>         xmlData = new XML();
>         xmlData.onLoad = function(success:Boolean):Void  {
>                 // do stuff
>                 _root.loadingGraphic.removeMovieClip();
>         };
>         trace("start A");
>         xmlData.load("stuff.xml"));
>         trace("start B");
>         setInterval(_root.ui, "timeTest", 10);
> }
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to