<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: strange stage-size problem, but only in ie6</title>
	<atom:link href="http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/</link>
	<description></description>
	<pubDate>Wed, 07 Jan 2009 13:08:13 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: creacog</title>
		<link>http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/#comment-355</link>
		<dc:creator>creacog</dc:creator>
		<pubDate>Thu, 21 Feb 2008 17:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/#comment-355</guid>
		<description>&lt;p&gt;sorry for the late reply.&lt;/p&gt;
&lt;p&gt;&gt; Did you ever figure out what’s going on here?&lt;br /&gt;
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...&lt;/p&gt;
&lt;pre&gt;
// 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 &gt; 0 &#038;&#038;
            stage.stageWidth  &gt; 0 )
        {
// at this point the stage.stageHeight and stage.stageWidth
// contain reliable values

        }
    }
&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>sorry for the late reply.</p>
<p>> Did you ever figure out what’s going on here?<br />
I tried to describe what&#8217;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&#8230;</p>
<pre>
// 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 &#038;&#038;
            stage.stageWidth  > 0 )
        {
// at this point the stage.stageHeight and stage.stageWidth
// contain reliable values

        }
    }
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith Dodd</title>
		<link>http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/#comment-346</link>
		<dc:creator>Keith Dodd</dc:creator>
		<pubDate>Fri, 01 Feb 2008 15:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/#comment-346</guid>
		<description>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</description>
		<content:encoded><![CDATA[<p>Did you ever figure out what&#8217;s going on here?<br />
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.</p>
<p>I&#8217;ll take a look at the resize idea.<br />
I have a function that creates a box positioned in center of stage. I&#8217;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&#8217;t doing a resize?</p>
<p>Why is everything so difficult!</p>
<p>Thanks<br />
Keith</p>
]]></content:encoded>
	</item>
</channel>
</rss>
