Comments on: strange stage-size problem, but only in ie6 https://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/ Paul Evans, blogging since 2004 Tue, 27 Jan 2009 12:44:35 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: bobby https://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/comment-page-1/#comment-655 Tue, 27 Jan 2009 12:44:35 +0000 http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/#comment-655 I have added this issue to the SWFObject FAQ (Q21):
http://code.google.com/p/swfobject/wiki/faq

]]>
By: creacog https://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/comment-page-1/#comment-355 Thu, 21 Feb 2008 17:16:54 +0000 http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/#comment-355 sorry for the late reply.

> Did you ever figure out what’s going on here?
I tried to describe what’s going on as far as I see it. Then tried to describe how I worked around it. I should have posted the code, relevant extracts of which follow from the Document class…

// Constructor
    public function DocClass()
    {
        super();
        stage.addEventListener( Event.RESIZE,
                                handleResize );
// dummy resize for browsers that have already
// correctly sized the stage
        handleResize( null );
    }
/**
* @private
* Handle resize
*/
    private function handleResize( e:Event ):void
    {
 // we only need act if the new size is other than 0x0
        if( stage.stageHeight > 0 &&
            stage.stageWidth  > 0 )
        {
// at this point the stage.stageHeight and stage.stageWidth
// contain reliable values

        }
    }
]]>
By: Keith Dodd https://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/comment-page-1/#comment-346 Fri, 01 Feb 2008 15:03:07 +0000 http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/#comment-346 Did you ever figure out what’s going on here?
I just got the same type of thing, caused by stage.stageWidth in AS3 being reported as 0 on refresh in IE. Both IE 6 and 7.

I’ll take a look at the resize idea.
I have a function that creates a box positioned in center of stage. I’ve called that in my constrictor function. How would you call it on resize but still do the initial call for those browsers that aren’t doing a resize?

Why is everything so difficult!

Thanks
Keith

]]>