----- Original Message ----- From: "Ralf Bokelberg" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, December 10, 2008 7:50 AM Subject: Re: [flexcoders] Re: Parsley MVC :: some thoughts
> Haha Amy, that's a good one. Maybe it should :) > > But seriously, dispatchEvent is nothing more than a function call, > which calls all the event handler methods. Of cause you can think of > pathologic examples like Paul likes to do :) But this is really the > same with function calls. For several years before using flash I used a proprietary GUI OO tool that had a similar (though less sophisticated) event mechanism. In that system event dispatch did not actually take place until the code block had completed - only then would handlers be invoked. This was particularly important since the system also supported database access and transaction handling so it's particularly important to have discrete units of work that form part of a transaction without interruption. So I don't think that the synchronous event despatch mechanism is as obvious as it appears to some and I think it should really be a delayed propogation. Anyway, it's been an interesting thread. Paul >It is completely synchronous and there is > nothing like "three lines later it does something strange to my code". > It would be really bad, if something like this could happen. > > I would be happy to reconsider, if you can provide me with a example, > which does what you were seeing. > > Cheers > Ralf. > > > > On Wed, Dec 10, 2008 at 12:02 AM, Amy <[EMAIL PROTECTED]> > wrote: >> --- In [email protected], "Ralf Bokelberg" >> >> <[EMAIL PROTECTED]> wrote: >>> >>> Hi Amy >>> >>> Afaik this is not possible in Flashplayer. A block of code is always >>> running through without any interuption. Colin Moock has a good >>> chapter of how all this works in his nice AS3 book. >> >> Apparently the code in question didn't read the book to realize what it >> was doing wasn't possibl LOL. >> >> > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: 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 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > >

