I have had instances where it took 2 frames to initialize.  And to critique
your code, you should delete the onEnterFrame BEFORE calling init, in case
the init function creates an onEnterFrame of its own, it would be deleted
immediately.


On 2/12/06, Stan Vassilev <[EMAIL PROTECTED]> wrote:
>
> if all it needs is one frame then:
>
> onEnterFrame = function () {
>     init(); // init code here that calls Stage.width
>     delete onEnterFrame;
> }
> _______________________________________________
> 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
>



--
-------------------------
Lanny McNie
_______________________________________________
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

Reply via email to