RE: [Flashcoders] Stage.width not working in IE

2006-02-13 Thread Josh Tynjala
In Firefox and Mozilla, you need to manually set the height of the page via CSS to get the Flash movie to resize correctly: html, body {height: 80%;} -- While trying to make a sample, the problem has changed: now it works in Opera and IE, but in Firefox and Mozilla can't see Stage.height...

Re: [Flashcoders] Stage.width not working in IE

2006-02-13 Thread Lanny McNie
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

Re: [Flashcoders] Stage.width not working in IE

2006-02-12 Thread Stan Vassilev
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://chattyf

Re: [Flashcoders] Stage.width not working in IE

2006-02-12 Thread Lanny McNie
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 >

Re: [Flashcoders] Stage.width not working in IE

2006-02-12 Thread Johannes Nel
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 resid

Re: [Flashcoders] Stage.width not working in IE

2006-02-12 Thread John Giotta
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 thi

Re: [Flashcoders] Stage.width not working in IE

2006-02-11 Thread Lanny McNie
IE has issues seeing the Stage.height and Stage.width on the first frame of the movie. Delay the checking until the 2nd or 3rd frame, and see if it makes a difference. On 2/11/06, GregoryN <[EMAIL PROTECTED]> wrote: > > > While trying to make a sample, the problem has changed: > now it works in

RE: [Flashcoders] Stage.width not working in IE

2006-02-11 Thread Adrian Lynch
bject: [Flashcoders] Stage.width not working in IE Hello flashcoders, I'm trying to handle window resizing in browser using custom onResize() function. Strange, but it works in IE (v6) only once. Mean Stage.width and Stage.height are defined properly on initial load of the page. Bu