See responses in blue Jobe Makar http://www.electrotank.com http://www.electro-server.com phone: 919-609-0408 mobile: 919-610-5754 fax: 919-341-8104 ----- Original Message ----- From: "Helen Triolo" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> Sent: Wednesday, November 02, 2005 4:06 PM Subject: Re: [Flashcoders] Forcing Flash going to nextframe whileexecutingcode? + MultiThreading in Flash?
> By "you cannot do that without breaking the parsing up over multiple > frames", do you mean > > a) there is some way to break up the actual xml reading over several > frames, and even be able to access individual nodes before the whole > thing is read in? if so, I would love to see an example, or Yes. You can break up reading the XML over multiple frames. I wouldn't wish this on anyone because it would be a pain, but it is possible. I had to do that in Flash 5 before XML parsing got much faster. You can't read the XML before it is fully loaded. The internal parseXML() method of the XML class is invoked when loading is complete...its probably just a string before that. > > b) there is some way to make the conversion from xml object to other > actionscript structure happen over multiple frames (which doesn't seem > useful to stop the timeout problem), or You could convert it to string, but that doesn't seem like it would be of any use. > > c) you can set up a 2-frame loop while the xml is loading so that a > timeout error doesn't occur? or No > > d) something else? > > thx, > Helen I might be slightly confused here. Are you getting this error from the internal parsing? ie when loading is complete it is automatically parsed by Flash internally to create the XML nodes. Is this what is timing out? Or are you getting the time out when you try to walk the nodes afterwards. The later is what I thought you were talking about. If it is the former then I think your choices are as follows: 1) Divide the XML file into smaller files or 2) Don't let the parseXML() method get fired. I think if you capture the XML.onData event then the parseXML method is not fired. Then you can maybe slice it up yourself somehow and make several XML objects....I don't know. > > >>>No, you cannot do that without breaking the parsing up over multiple >>>frames. >>>A function is fully executed in 1 frame. The display is only updated 1 >>>time >>>per frame. >>> >>>Jobe Makar >>>http://www.electrotank.com >>>http://www.electro-server.com >>>phone: 919-609-0408 >>>mobile: 919-610-5754 >>>fax: 919-341-8104 >>>----- Original Message ----- >>>From: <[EMAIL PROTECTED]> >>>To: <flashcoders@chattyfig.figleaf.com> >>>Sent: Wednesday, November 02, 2005 8:52 AM >>>Subject: [Flashcoders] Forcing Flash going to next frame while >>>executingcode? + MultiThreading in Flash? >>> >>> >>>Is this possible ? I have a large xml-file which is parsed. This tends >>>to freeze the application several seconds (in case of a really big >>>xml-file, a popup can occur whith script time out error). Is it possible >>>to force Flash to jump to a next frame without stopping the execution of >>>code? And is it possible to set this script time out higher? >>> >>> >>> >>>Breaking the xml in several peaces is an option we have already done, >>>but still I would like to know if it is possible to force flash to a >>>next frame. >>> >>> >>> >>>Another question : Is it possible to start another thread to execute >>>some operations in the background? >>> >>> >>> >>>Thx, Lieven Cardoen >>> >>> >>> > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders