<?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/"
		>
<channel>
	<title>Comments on: Rendering Flash Content with Dynamic WMODE Attributes</title>
	<atom:link href="http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/feed/" rel="self" type="application/rss+xml" />
	<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/</link>
	<description>Joseph Labrecque: Senior Interactive Software Engineer - Artist - Author - Speaker - Adobe Education Leader - Adobe Community Professional</description>
	<lastBuildDate>Wed, 08 Feb 2012 13:00:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: PeterT.</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/comment-page-1/#comment-15658</link>
		<dc:creator>PeterT.</dc:creator>
		<pubDate>Fri, 09 Dec 2011 10:09:44 +0000</pubDate>
		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1049#comment-15658</guid>
		<description>&lt;q cite=&quot;the_player.wmode = &#039;opaque&#039;;&quot;&gt;

I love you so much exactly was I was looking for!
Tried already 5hours to solve this problem... very frustrating.
Thanks!</description>
		<content:encoded><![CDATA[<p><q cite="the_player.wmode = 'opaque';"></p>
<p>I love you so much exactly was I was looking for!<br />
Tried already 5hours to solve this problem&#8230; very frustrating.<br />
Thanks!</q></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Allan</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/comment-page-1/#comment-11262</link>
		<dc:creator>Allan</dc:creator>
		<pubDate>Sat, 24 Sep 2011 16:56:56 +0000</pubDate>
		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1049#comment-11262</guid>
		<description>Hmm ... JQuery aside for a moment,  the following simple JavaScript code works perfectly for me.

Considering the following object tag:

&lt;code&gt;
     
         
         
         
         
         
         
     
&lt;/code&gt;

Dynamically setting the rendered object&#039;s wmode at runtime works like this:

&lt;code&gt;
    // Once I have reference to my player (the_player) (choose your method),
    // I simply do ...

    var param_wmode = document.createElement(&#039;param&#039;);
    param_wmode.setAttribute(&#039;name&#039;, &#039;wmode&#039;);
    param_wmode.setAttribute(&#039;value&#039;, &#039;opaque&#039;);
    the_player.appendChild(param_wmode);
    the_player.wmode = &#039;opaque&#039;;
&lt;/code&gt;

Done!

&lt;strong&gt;Note:&lt;/strong&gt;
&lt;pre&gt;
    - This works just as well for embed tags; stand-alone (html5) or nested. Just set the embed&#039;s wmode attribute accordingly.
    - Success may also depend on your chosen doctype. I use the html5 doctype declaration, but I don&#039;t believe that&#039;s the secret here.
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hmm &#8230; JQuery aside for a moment,  the following simple JavaScript code works perfectly for me.</p>
<p>Considering the following object tag:</p>
<p><code></p>
<p></code></p>
<p>Dynamically setting the rendered object&#8217;s wmode at runtime works like this:</p>
<p><code><br />
    // Once I have reference to my player (the_player) (choose your method),<br />
    // I simply do ...</p>
<p>    var param_wmode = document.createElement('param');<br />
    param_wmode.setAttribute('name', 'wmode');<br />
    param_wmode.setAttribute('value', 'opaque');<br />
    the_player.appendChild(param_wmode);<br />
    the_player.wmode = 'opaque';<br />
</code></p>
<p>Done!</p>
<p><strong>Note:</strong></p>
<pre>
    - This works just as well for embed tags; stand-alone (html5) or nested. Just set the embed's wmode attribute accordingly.
    - Success may also depend on your chosen doctype. I use the html5 doctype declaration, but I don't believe that's the secret here.
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/comment-page-1/#comment-6537</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 11 Jan 2011 23:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1049#comment-6537</guid>
		<description>Thank you for this.  If you want to use it without the embedWrapper class (and assuming your content folks are copying YouTube embed code, where an embed is wrapped in an object), lines 4 thru 9 can be replaced with:

&lt;code&gt;
$(&#039;object&#039;).each(function() {
  var newContent = $(this).clone();
  $(this).replaceWith(newContent);
});
&lt;/code&gt;

Thanks again!</description>
		<content:encoded><![CDATA[<p>Thank you for this.  If you want to use it without the embedWrapper class (and assuming your content folks are copying YouTube embed code, where an embed is wrapped in an object), lines 4 thru 9 can be replaced with:</p>
<p><code><br />
$('object').each(function() {<br />
  var newContent = $(this).clone();<br />
  $(this).replaceWith(newContent);<br />
});<br />
</code></p>
<p>Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DrCord</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/comment-page-1/#comment-5948</link>
		<dc:creator>DrCord</dc:creator>
		<pubDate>Wed, 15 Dec 2010 00:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1049#comment-5948</guid>
		<description>Very useful and works in all browsers, unlike other snippets I found. Thanks!</description>
		<content:encoded><![CDATA[<p>Very useful and works in all browsers, unlike other snippets I found. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/comment-page-1/#comment-4934</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 23 Nov 2010 20:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1049#comment-4934</guid>
		<description>oops.  that stripped out all my code.  urgh...</description>
		<content:encoded><![CDATA[<p>oops.  that stripped out all my code.  urgh&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/comment-page-1/#comment-4933</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 23 Nov 2010 20:10:23 +0000</pubDate>
		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1049#comment-4933</guid>
		<description>Hey there, trying to get this to work and it definitely seems (even with updated code) to fail in IE7 and IE8.  Though I am also trying to add the wrappers dynamically cause it&#039;s for a blog:

my code:

 $(&quot;object&quot;).wrap(&#039;&#039;);
  $(&quot;object&quot;).append(&#039;&#039;);
  	$(&quot;.embedHolder embed&quot;).attr(&quot;wmode&quot;, &quot;transparent&quot;);
  	$(&quot;.embedHolder&quot;).each(
  		function () {
  			var cont = &#039;&#039; + $(this).html() + &#039;&#039;;
  			$(this).replaceWith(cont);
  		}
  	);

Any ideas?</description>
		<content:encoded><![CDATA[<p>Hey there, trying to get this to work and it definitely seems (even with updated code) to fail in IE7 and IE8.  Though I am also trying to add the wrappers dynamically cause it&#8217;s for a blog:</p>
<p>my code:</p>
<p> $(&#8220;object&#8221;).wrap(&#8221;);<br />
  $(&#8220;object&#8221;).append(&#8221;);<br />
  	$(&#8220;.embedHolder embed&#8221;).attr(&#8220;wmode&#8221;, &#8220;transparent&#8221;);<br />
  	$(&#8220;.embedHolder&#8221;).each(<br />
  		function () {<br />
  			var cont = &#8221; + $(this).html() + &#8221;;<br />
  			$(this).replaceWith(cont);<br />
  		}<br />
  	);</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rendering Flash Content with Dynamic WMODE Attributes &#8211; Revisited &#124; In Flagrante Delicto!</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/comment-page-1/#comment-3650</link>
		<dc:creator>Rendering Flash Content with Dynamic WMODE Attributes &#8211; Revisited &#124; In Flagrante Delicto!</dc:creator>
		<pubDate>Wed, 18 Nov 2009 04:39:19 +0000</pubDate>
		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1049#comment-3650</guid>
		<description>[...] am I talking about? You can read up on my original article if it pleases [...]</description>
		<content:encoded><![CDATA[<p>[...] am I talking about? You can read up on my original article if it pleases [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Ragona</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/comment-page-1/#comment-3626</link>
		<dc:creator>Ryan Ragona</dc:creator>
		<pubDate>Wed, 23 Sep 2009 06:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1049#comment-3626</guid>
		<description>Yeah, this just sets the object to &#039;display: none;&#039; - and as Josh / Joseph pointed out, it does something different in each browser. (Nevermind those crazy Firefox browser bugs with wmode=transparent... grrr.)</description>
		<content:encoded><![CDATA[<p>Yeah, this just sets the object to &#8216;display: none;&#8217; &#8211; and as Josh / Joseph pointed out, it does something different in each browser. (Nevermind those crazy Firefox browser bugs with wmode=transparent&#8230; grrr.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joseph Labrecque</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/comment-page-1/#comment-3625</link>
		<dc:creator>Joseph Labrecque</dc:creator>
		<pubDate>Tue, 22 Sep 2009 23:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1049#comment-3625</guid>
		<description>My understanding is that they modify the &quot;display&quot; CSS attribute to &quot;none&quot; and back again.  

This is the trouble with HTML- while everyone cries &quot;STANDARDS!&quot; every browser still adheres to their own specific implementation.

Straight-up doesn&#039;t work in IE!</description>
		<content:encoded><![CDATA[<p>My understanding is that they modify the &#8220;display&#8221; CSS attribute to &#8220;none&#8221; and back again.  </p>
<p>This is the trouble with HTML- while everyone cries &#8220;STANDARDS!&#8221; every browser still adheres to their own specific implementation.</p>
<p>Straight-up doesn&#8217;t work in IE!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/comment-page-1/#comment-3624</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Tue, 22 Sep 2009 23:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1049#comment-3624</guid>
		<description>You should check to see what show() and hide() actually do. If it removes the embedded content from the DOM entirely and adds it again, you should be fine. However, if it simply modifies the &quot;display&quot; or other related styles, then it&#039;s important to note that browsers all behave a little differently. Some will reload the SWF entirely. Some will simply hide it, as those styles imply, but leave it running. Be sure to do cross-browser testing!</description>
		<content:encoded><![CDATA[<p>You should check to see what show() and hide() actually do. If it removes the embedded content from the DOM entirely and adds it again, you should be fine. However, if it simply modifies the &#8220;display&#8221; or other related styles, then it&#8217;s important to note that browsers all behave a little differently. Some will reload the SWF entirely. Some will simply hide it, as those styles imply, but leave it running. Be sure to do cross-browser testing!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

