Why not call your next function inside the buildXML() function after it is all done?
Nathan Mynarcik Interactive Web Developer [email protected] 254.749.2525 www.mynarcik.com -----Original Message----- From: "Lehr, Theodore" <[email protected]> Date: Mon, 29 Mar 2010 08:56:44 To: Flash Coders List<[email protected]> Subject: RE: [Flashcoders] Process issue The problem is that the function is taking too long to do that... like I have: function buildXML(_xml:*):void { ................. ................. buildXML(ixml); trace("--------------------"); } trace("here"); and it traces to: here ----------------------- ----------------------- ----------------------- ----------------------- ----------------------- ----------------------- ----------------------- ----------------------- I need someway to fnish buildXML before calling another function...... ________________________________________ From: [email protected] [[email protected]] On Behalf Of [email protected] [[email protected]] Sent: Monday, March 29, 2010 8:44 AM To: Flash Coders List Subject: Re: [Flashcoders] Process issue Generally.. var myXML:XML = XML(something); buildXML(myXML); // now all XML is processed callotherfunction(); function buildXML(xml:XML) { .. if (something){ buidlXML(someXML); } On 29 March 2010 at 14:13 "Lehr, Theodore" <[email protected]> wrote: > I have a function that is building some xml through a recursive function... > and then call another function once the xml is done.... > > how can I tell when it is done being built: > > I can not do: > > function buildXML() { > > > buidlXML(); > callotherfunction(); > } > > because that would called to much.... hmm can not figure this out... the > buildXML function is taking other XML and canging it to a structure I can > use.... > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

