<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: Weird SWFObject sizing issue in Firefox</title>
	<atom:link href="http://aralbalkan.com/1933/feed" rel="self" type="application/rss+xml" />
	<link>http://aralbalkan.com/1933</link>
	<description>Passionate geekisms.</description>
	<lastBuildDate>Fri, 19 Mar 2010 02:32:17 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: koko</title>
		<link>http://aralbalkan.com/1933/comment-page-1#comment-258784</link>
		<dc:creator>koko</dc:creator>
		<pubDate>Mon, 30 Nov 2009 05:03:02 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/1933#comment-258784</guid>
		<description>Thanks for sharing~</description>
		<content:encoded><![CDATA[<p>Thanks for sharing~</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: localToGlobal &#187; Blog Archive &#187; news review -&#62; 5th week of 2009</title>
		<link>http://aralbalkan.com/1933/comment-page-1#comment-210732</link>
		<dc:creator>localToGlobal &#187; Blog Archive &#187; news review -&#62; 5th week of 2009</dc:creator>
		<pubDate>Fri, 30 Jan 2009 21:14:28 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/1933#comment-210732</guid>
		<description>[...] &gt; Aral Balkan - Weird SWFObject sizing issue in Firefox [...]</description>
		<content:encoded><![CDATA[<p>[...] &gt; Aral Balkan &#8211; Weird SWFObject sizing issue in Firefox [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bedava sitem</title>
		<link>http://aralbalkan.com/1933/comment-page-1#comment-209807</link>
		<dc:creator>bedava sitem</dc:creator>
		<pubDate>Wed, 28 Jan 2009 17:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/1933#comment-209807</guid>
		<description>thanks. super</description>
		<content:encoded><![CDATA[<p>thanks. super</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seb</title>
		<link>http://aralbalkan.com/1933/comment-page-1#comment-209769</link>
		<dc:creator>seb</dc:creator>
		<pubDate>Wed, 28 Jan 2009 15:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/1933#comment-209769</guid>
		<description>You can also do whatever you have to do with stage.stageWidth and stage.stageHeight after the first cycle of an enterframe. By then the stage width and height are properly set.


private function init():void
{
addEventListener( Event.ENTER_FRAME , delay );
}


private function delay( e:Event=null ):void
{
removeEventListener( Event.ENTER_FRAME , delay );

var w:Number = stage.stageWidth;
var h:Number = stage.stageHeight;

}</description>
		<content:encoded><![CDATA[<p>You can also do whatever you have to do with stage.stageWidth and stage.stageHeight after the first cycle of an enterframe. By then the stage width and height are properly set.</p>
<p>private function init():void<br />
{<br />
addEventListener( Event.ENTER_FRAME , delay );<br />
}</p>
<p>private function delay( e:Event=null ):void<br />
{<br />
removeEventListener( Event.ENTER_FRAME , delay );</p>
<p>var w:Number = stage.stageWidth;<br />
var h:Number = stage.stageHeight;</p>
<p>}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://aralbalkan.com/1933/comment-page-1#comment-209332</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Tue, 27 Jan 2009 18:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/1933#comment-209332</guid>
		<description>I had a similar problem with this in IE6 on XP and what I do now for all my flash movies is delay them for 50ms before I process any code.  I cant find where I found this solution at but this seems to solve the issue.  Let me know if it works...

/* 	Timer used to delay loading of Flash move by milliseconds to fix bugs related to IE  */
var _ieDelayTimer:Timer = new Timer(50, 1);
_ieDelayTimer.addEventListener(TimerEvent.TIMER, onIETimer);
_ieDelayTimer.start(); // Timers in AS3 must be explicitly started

/*	Delays the movie from loading by 50 milliseconds to allow everything to initialize and protect against known bugs in IE
*/
function onIETimer(e:TimerEvent):void {
	_ieDelayTimer.removeEventListener(TimerEvent.TIMER, onIETimer);
	init(); // put the start of all my code initialization, setting params, listeners, stagewidth vars etc in this function
}</description>
		<content:encoded><![CDATA[<p>I had a similar problem with this in IE6 on XP and what I do now for all my flash movies is delay them for 50ms before I process any code.  I cant find where I found this solution at but this seems to solve the issue.  Let me know if it works&#8230;</p>
<p>/* 	Timer used to delay loading of Flash move by milliseconds to fix bugs related to IE  */<br />
var _ieDelayTimer:Timer = new Timer(50, 1);<br />
_ieDelayTimer.addEventListener(TimerEvent.TIMER, onIETimer);<br />
_ieDelayTimer.start(); // Timers in AS3 must be explicitly started</p>
<p>/*	Delays the movie from loading by 50 milliseconds to allow everything to initialize and protect against known bugs in IE<br />
*/<br />
function onIETimer(e:TimerEvent):void {<br />
	_ieDelayTimer.removeEventListener(TimerEvent.TIMER, onIETimer);<br />
	init(); // put the start of all my code initialization, setting params, listeners, stagewidth vars etc in this function<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flex Monkey Patches &#187; Blog Archive &#187; Rubbernecker’s Review - Week 25</title>
		<link>http://aralbalkan.com/1933/comment-page-1#comment-209324</link>
		<dc:creator>Flex Monkey Patches &#187; Blog Archive &#187; Rubbernecker’s Review - Week 25</dc:creator>
		<pubDate>Tue, 27 Jan 2009 17:45:46 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/1933#comment-209324</guid>
		<description>[...] Weird SWFObject sizing issue in Firefox (from aralbalkan.com) [...]</description>
		<content:encoded><![CDATA[<p>[...] Weird SWFObject sizing issue in Firefox (from aralbalkan.com) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bobby</title>
		<link>http://aralbalkan.com/1933/comment-page-1#comment-209235</link>
		<dc:creator>bobby</dc:creator>
		<pubDate>Tue, 27 Jan 2009 12:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/1933#comment-209235</guid>
		<description>I have added this issue to the SWFObject FAQ (Q21):
http://code.google.com/p/swfobject/wiki/faq</description>
		<content:encoded><![CDATA[<p>I have added this issue to the SWFObject FAQ (Q21):<br />
<a href="http://code.google.com/p/swfobject/wiki/faq" rel="nofollow">http://code.google.com/p/swfobject/wiki/faq</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kelvin Luck</title>
		<link>http://aralbalkan.com/1933/comment-page-1#comment-208959</link>
		<dc:creator>Kelvin Luck</dc:creator>
		<pubDate>Mon, 26 Jan 2009 20:29:57 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/1933#comment-208959</guid>
		<description>Sounds like the same issue Steven Sacks blogged about last week:

http://www.stevensacks.net/2009/01/20/firefox-3-mac-flash-bug-stagewidth-and-stageheight-are-0/

I guess the best workaround is to have a resize handler on the stage and deal with it whenever the reported dimensions change (whether this is because the stage was resized or because the flash player finally figured out what size it was meant to be)...</description>
		<content:encoded><![CDATA[<p>Sounds like the same issue Steven Sacks blogged about last week:</p>
<p><a href="http://www.stevensacks.net/2009/01/20/firefox-3-mac-flash-bug-stagewidth-and-stageheight-are-0/" rel="nofollow">http://www.stevensacks.net/2009/01/20/firefox-3-mac-flash-bug-stagewidth-and-stageheight-are-0/</a></p>
<p>I guess the best workaround is to have a resize handler on the stage and deal with it whenever the reported dimensions change (whether this is because the stage was resized or because the flash player finally figured out what size it was meant to be)&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: creacog</title>
		<link>http://aralbalkan.com/1933/comment-page-1#comment-208950</link>
		<dc:creator>creacog</dc:creator>
		<pubDate>Mon, 26 Jan 2009 19:49:32 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/1933#comment-208950</guid>
		<description>Look like very close to symptoms of an issue i had ages ago with ie6 and the old SWFObject.
Basically solved by using a resize handler to get to a point where stageHieght and stageWidth could be relied upon.
Code snippet in the comments here: http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/</description>
		<content:encoded><![CDATA[<p>Look like very close to symptoms of an issue i had ages ago with ie6 and the old SWFObject.<br />
Basically solved by using a resize handler to get to a point where stageHieght and stageWidth could be relied upon.<br />
Code snippet in the comments here: <a href="http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/" rel="nofollow">http://blog.creacog.co.uk/2007/12/02/strange-stage-size-problem-but-only-in-ie6/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bobby</title>
		<link>http://aralbalkan.com/1933/comment-page-1#comment-208916</link>
		<dc:creator>bobby</dc:creator>
		<pubDate>Mon, 26 Jan 2009 17:09:29 +0000</pubDate>
		<guid isPermaLink="false">http://aralbalkan.com/1933#comment-208916</guid>
		<description>Aral, this happens only for dynamic publishing, true?

Why not use a resize handler? When the stage size is initially 0 the Flash Player itself usually keeps on triggering the stage.resize event until it receives its current value.</description>
		<content:encoded><![CDATA[<p>Aral, this happens only for dynamic publishing, true?</p>
<p>Why not use a resize handler? When the stage size is initially 0 the Flash Player itself usually keeps on triggering the stage.resize event until it receives its current value.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
