Re: [Flashcoders] doLater not working
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 doesn't exist when the function is called... Try to write tour _root.panelBG.sp.doLater(_root, displayCorrectFrame); on the frame 2, if it works, it's because you don't do the things in wright order... David Buff - Original Message - From: Mendelsohn, Michael [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, October 17, 2006 9:56 PM Subject: [Flashcoders] doLater not working Hi list... I have a line of code on frame 1 of the _root: _root.panelBG.sp.doLater(_root, displayCorrectFrame); ...where sp is a scrollPane component inited in the panelBG mc. My doLater function is also on frame 1 of the _root, but it never gets fired. I can't figure out why. I think it might be a scope issue, but it's all only on frame 1 of the _root timeline. Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
Re: [Flashcoders] doLater not working
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(); delete this.onEnterFrame; } On 10/18/06, David Buff [EMAIL PROTECTED] wrote: 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 doesn't exist when the function is called... Try to write tour _root.panelBG.sp.doLater(_root, displayCorrectFrame); on the frame 2, if it works, it's because you don't do the things in wright order... David Buff - Original Message - From: Mendelsohn, Michael [EMAIL PROTECTED] To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Tuesday, October 17, 2006 9:56 PM Subject: [Flashcoders] doLater not working Hi list... I have a line of code on frame 1 of the _root: _root.panelBG.sp.doLater(_root, displayCorrectFrame); ...where sp is a scrollPane component inited in the panelBG mc. My doLater function is also on frame 1 of the _root, but it never gets fired. I can't figure out why. I think it might be a scope issue, but it's all only on frame 1 of the _root timeline. Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
RE: [Flashcoders] doLater not working
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 without any onEnterFrame. I suppose the component needs a frame to even be able to register a doLater. _root.panelBG.onEnterFrame = function() { _root.panelBG.sp.doLater(_root, displayCorrectFrame); delete _root.panelBG.onEnterFrame; }; Thanks! - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] doLater not working
Hi list... I have a line of code on frame 1 of the _root: _root.panelBG.sp.doLater(_root, displayCorrectFrame); ...where sp is a scrollPane component inited in the panelBG mc. My doLater function is also on frame 1 of the _root, but it never gets fired. I can't figure out why. I think it might be a scope issue, but it's all only on frame 1 of the _root timeline. Thanks, - Michael M. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com