<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>eingko weblog &#187; Browsers</title>
	<atom:link href="http://www.eingko.net/blog/category/browsers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eingko.net/blog</link>
	<description>a web developer's thoughts and musings</description>
	<lastBuildDate>Wed, 09 Dec 2009 23:42:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Internet Explorer, Flash, Alignment Gotcha</title>
		<link>http://www.eingko.net/blog/2008/11/19/internet-explorer-flash-alignment-gotcha/</link>
		<comments>http://www.eingko.net/blog/2008/11/19/internet-explorer-flash-alignment-gotcha/#comments</comments>
		<pubDate>Wed, 19 Nov 2008 21:16:15 +0000</pubDate>
		<dc:creator>eingko</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XHTML/CSS]]></category>

		<guid isPermaLink="false">http://www.eingko.net/blog/?p=33</guid>
		<description><![CDATA[I ran into a rather annoying issue the other day related to content alignment in Flash; as usual, this problem exists exclusively in Internet Explorer. To be more specific, it is an issue with how the Flash Player ActiveX control is written.
If you are aligning content in Flash that uses the Stage width or height [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into a rather annoying issue the other day related to content alignment in Flash; as usual, this problem exists exclusively in Internet Explorer. To be more specific, it is an issue with how the Flash Player ActiveX control is written.</p>
<p>If you are aligning content in Flash that uses the Stage width or height as a variable (e.g., you want to center a MovieClip) and you do it on initialization (i.e., in code and on the first frame), you may run in to this issue.  Here is an image demonstrating what you might see:</p>
<p><img src="http://www.eingko.net/blog/wp-content/uploads/2008/11/ie_flash_bug.gif" alt="" title="Internet Explorer, Flash, Alignment Gotcha" width="400" height="440" class="alignleft size-full wp-image-34" style="border: none;" /></p>
<p>Note that in the &#8220;before&#8221; screen, the content is centered horizontally, while in the &#8220;after&#8221; screen, the content is only half-visible and appears to be &#8220;centered&#8221; on the left margin.</p>
<p>If you run a test &#8211; output the Stage width to a text field, you&#8217;ll see that the width will be returned as 0.</p>
<p>As far as I know, there are two solutions to this problem.  If you&#8217;re embedding your Flash using swfObject, then make sure that you omit the &#8220;scale&#8221; attribute. For example, modify the following:</p>
<pre class="code">
var params = {
    bgcolor: "#000000",
    menu: "false",
    scale: "noScale",
    allowFullScreen: true
};
</pre>
<p>To something that looks like this:</p>
<pre class="code">
var params = {
    bgcolor: "#000000",
    menu: "false",
    allowFullScreen: true
};
</pre>
<p>Alternatively, if you absolutely need that attribute.  You can create an &#8220;EnterFrame&#8221; event listener that detects when the Stage width is greater than 0 and then remove the listener.  Here&#8217;s an example in ActionScript 2:</p>
<pre class="code">
this.onEnterFrame = function() {
    if (Stage.width > 0) {
        init(); // Pass to initialization function
        this.onEnterFrame = null; // Clear enterFrame listener
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.eingko.net/blog/2008/11/19/internet-explorer-flash-alignment-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mozilla Firefox and XML Limitations</title>
		<link>http://www.eingko.net/blog/2008/04/12/mozilla-firefox-and-xml-limitations/</link>
		<comments>http://www.eingko.net/blog/2008/04/12/mozilla-firefox-and-xml-limitations/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 05:00:12 +0000</pubDate>
		<dc:creator>eingko</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.eingko.net/blog/?p=28</guid>
		<description><![CDATA[I wish I was informed earlier of the XML limitations in Firefox.  I was racking my brain trying to figure out why my external XML entities were not working only to discover that this essential XML feature is unsupported by Firefox.
This will NOT work:

&#60;!DOCTYPE root [
&#60;!ENTITY sample SYSTEM "sample.xml"&#62;
]&#62;
&#60;root&#62;
&#38;sample;
&#60;/root&#62;

How disappointing.  I understand the [...]]]></description>
			<content:encoded><![CDATA[<p>I wish I was informed earlier of the <a href="http://www.ibm.com/developerworks/xml/library/x-ffox2/index.html#N101A0">XML limitations in Firefox</a>.  I was racking my brain trying to figure out why my external XML entities were not working only to discover that this essential XML feature is <a href="http://developer.mozilla.org/en/docs/XML_in_Mozilla#DTDs_and_Other_External_Entities">unsupported by Firefox</a>.</p>
<p>This will <strong>NOT</strong> work:<br />
<code><br />
&lt;!DOCTYPE root [<br />
&lt;!ENTITY sample SYSTEM "sample.xml"&gt;<br />
]&gt;<br />
&lt;root&gt;<br />
&amp;sample;<br />
&lt;/root&gt;<br />
</code></p>
<p>How disappointing.  I understand the rationale, but It&#8217;s unfortunate that this capability is completely unavailable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.eingko.net/blog/2008/04/12/mozilla-firefox-and-xml-limitations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
