i think it might be a case that the component is not yet intialized when you
are assigning the doLater....so 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" <[email protected]>
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.

_______________________________________________
[email protected]
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

_______________________________________________
[email protected]
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

_______________________________________________
[email protected]
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

Reply via email to