And in case anyone comes upon this later, besides enter_frame, there are two additional ways to break up the processing, one is callLater(), and one is to use Timer. You will find lots of discussion on the merits of each, but no definitive best solution.
Tracy Spratt Lariat Services Flex development bandwidth available ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Sam Lai Sent: Tuesday, February 03, 2009 7:09 AM To: [email protected] Subject: Re: [flexcoders] Re: Are flex events really thread safe? Yep. I had a similar situation - in the end, I had to rewrite the lengthy processing code to split the task up and process a couple of items per frame, hooking into the ENTER_FRAME event. That kept the UI responsive, which was my main concern. 2009/2/3 Shyam <[email protected] <mailto:shyammohan.sugathan%40devicedriven.com> >: > so if i write a lengthy (time consuming) operation in my event handler > i will delay flex from calling the listener even if the other network > operations complete....hmmm > > Thanks Paul. > > > > --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Paul Andrews" <p...@...> wrote: >> >> ----- Original Message ----- >> From: "Shyam" <shyammohan.sugat...@...> >> To: <[email protected] <mailto:flexcoders%40yahoogroups.com> > >> Sent: Tuesday, February 03, 2009 10:29 AM >> Subject: [flexcoders] Are flex events really thread safe? >> >> >> > Consider this scenario. >> > >> > >> > i have issued some 5 network calls form the flex client and my >> > complete event Handler is one and the same for all these http calls. >> > >> > can i be 100% sure that two simultaneous controls will never execute >> > the code in my event Handler ? >> >> The flash player only has one thread of execution. >> >> > Putting it another way: how does flex handles event synchronization? >> > >> > i have read up Ted Patrics article on the Elastic Racetrack >> > > (http://www.powersdk.com/ted/2005/07/flash-player-mental-model-elastic.p hp <http://www.powersdk.com/ted/2005/07/flash-player-mental-model-elastic.p hp> ) >> > but couldnt figure out the answer for the above :( >> > >> > Regards >> > Shyam >> > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> > Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 <https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf -1e62079f6847> > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo <http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo> ! Groups Links > > > >

