yeah, something like onEnterFrame = function() { if (Stage.width > 0) { doSomething(); } }
On 2/12/06, Johannes Nel <[EMAIL PROTECTED]> wrote: > > even in a single frame movie onEnterframe is called repeatedly, thus > allowing you to do as lanny suggests. > look for a function called doLater > > On 2/12/06, John Giotta <[EMAIL PROTECTED]> wrote: > > > > Perhaps Lanny's suggestion will work, but may not work with a single > frame > > SWF. > > The problem resides in how the Flash Player is initiatated on first > > render. Basically the ActionScript is being interpreted faster than > > the visuals are rendered (which includes the scene). > > > > I've gotten to understand this and I have adopted a way of > > initializing all the Stage parameters first then initializing the > > elements. And lastly, I actually call the onResize method for good > > measure because in some instances first render does not trigger a > > resize event. > > _______________________________________________ > > 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 > > > > > > -- > j:pn > _______________________________________________ > 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