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); } _______________________________________________ Flashcoders@chattyfig.figleaf.com 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