Create a Class which processes your XML and dispatches an Event when it's done. Upon receiving the Event, you can proceed to the next function. -- Kenneth Kawamoto http://www.materiaprima.co.uk/
On 29 March 2010 13:56, Lehr, Theodore <ted_l...@federal.dell.com> wrote: > 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: flashcoders-boun...@chattyfig.figleaf.com > [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of p...@ipauland.com > [p...@ipauland.com] > 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" <ted_l...@federal.dell.com> 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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders