Re: [Flashcoders] doLater not working

2006-10-18 Thread David Buff
I think... You have to be attentive about the fact that flash execute the code from the upper layer to the lower layer. So if your _root.panelBG.sp.doLater(_root, displayCorrectFrame); is written on a layer witch is upper layer of the one where is created your scrollPlane, this last one

Re: [Flashcoders] doLater not working

2006-10-18 Thread Rich Rodecker
i think it might be a case that the component is not yet intialized when you are assigning the doLaterso you might need to wait a frame for the component to initialize. you can also just do an onEnterFrame that runs just once: this.onEnterFrame = function(){ this.displayCorrectFrame();

RE: [Flashcoders] doLater not working

2006-10-18 Thread Mendelsohn, Michael
Hi Rich and Dave... Thanks for the responses. Rich, your solution worked. I needed a combination of delaying a one frame *and* a doLater. I was doing just either or, but it was needing both, although I have no idea why. I would have thought the doLater was automatically scheduled to fire