I don't see why you can't use the equivalent of an AsyncToken in a sync call if you really want to. I don't understand the problem.
There's at least one DoLater.as class floating around in AS2..a doLater is basically just adding an onEnterFrame to an handy MovieClip that calls a given method and then removes itself. > > From: "pgp.coppens" <[EMAIL PROTECTED]> > Date: 2007/03/23 Fri AM 10:54:28 CST > To: [email protected] > Subject: [flexcoders] Re: How to asynchronously dispatch an event > > Thanks for your reply Mark > > > > Why would it matter for the API whether or not event dispatching was > asynchronous? Clients still listen for events and hear them; the only > difference would be that the stack would get taller on the sync calls. > > > > The main reason is that I want to give the "user" of the api the > ability to add some custom information to the return value of the data > model call and make that available in the callback (much like one can > add 'stuff' to the AsyncToken returned from e.g. an HTTPService > invocation). > > > If you *really* needed to make ape async behavior, you could have > the sync methods use a doLater() method to wait a frame before > broadcasting an event. > > Thanks for the doLater() pointer. I can only find info on > UIModel.doLater() in the 1.5 docs of flex. Has something changed in > 2.0 in that context. > > > Again, I appreciate people taking the time to get be bootstrapped with > flex. > > Peter > > > -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

