<?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>In Flagrante Delicto! &#187; HTML</title>
	<atom:link href="http://inflagrantedelicto.memoryspiral.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://inflagrantedelicto.memoryspiral.com</link>
	<description>Joseph Labrecque: Senior Interactive Software Engineer - Artist - Author - Speaker - Adobe Education Leader - Adobe Community Professional</description>
	<lastBuildDate>Mon, 06 Feb 2012 15:10:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>&#8220;Flash Rules&#8221;? </title>
		<link>http://inflagrantedelicto.memoryspiral.com/2011/03/flash-rules/</link>
		<comments>http://inflagrantedelicto.memoryspiral.com/2011/03/flash-rules/#comments</comments>
		<pubDate>Sun, 13 Mar 2011 21:28:11 +0000</pubDate>
		<dc:creator>Joseph Labrecque</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=3167</guid>
		<description><![CDATA[I&#8217;m duplicating my comments from the post &#8220;Flash Rules&#8221; over at QuirkeyBlog here, as I think they are a pretty good summary of my thoughts on Flash and &#8220;HTML5&#8243; at the present time. Aaron makes some great points, and is &#8230; <a href="http://inflagrantedelicto.memoryspiral.com/2011/03/flash-rules/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<div id="attachment_3173" class="wp-caption aligncenter" style="width: 560px"><img src="http://inflagrantedelicto.memoryspiral.com/wp-content/uploads/2011/03/quirkey-e1300051390783.jpg" alt="" title="&quot;Flash Rules&quot;" width="550" height="304" class="size-full wp-image-3173" /><p class="wp-caption-text">&quot;Flash Rules&quot;</p></div>
<p>I&#8217;m duplicating my comments from the post &#8220;<a href="http://www.quirkey.com/blog/2011/03/08/flash-rules/">Flash Rules</a>&#8221; over at <strong>QuirkeyBlog</strong> here, as I think they are a pretty good summary of my thoughts on Flash and &#8220;HTML5&#8243; at the present time. Aaron makes some great points, and is really fair with his assessment of the current situation. most of the comments are pretty balanced too, aside from the usual injection of zealotry.</p>
<p>I <em>strongly</em> encourage anyone who feels strongly about these issues to <a href="http://www.quirkey.com/blog/2011/03/08/flash-rules/">go and comment</a> over at his blog in support of his honest attempt at cross-platform dialog.</p>
<hr/>
<blockquote><p>Great perspective article. Really enjoy reading a level-headed assessment of the current opinions surrounding Flash.</p>
<p>Flash, as a platform, reaches across a variety of devices and environments. It isn’t just ads, video, or even Web. A lot of articles critical of Flash never mention this. I’ve been working with the platform as my primary focus for over 10 years and have only made a banner ad with Flash once (and that was many years ago). Most of the Flash work I do these days for the Web is to build up modular functionality just not possible any other way. Most of my development projects are now done outside of the browser on desktops and mobile; all using Flash Platform tech.</p>
<p>HTML, on the other hand, is also beginning to seed across devices and environments. Already well beyond the traditional mark-up usage it was intended for. Now that HTML5 (along with CSS3 and JavaScript) is picking up some of the functionality that has been in the Flash realm for years- it can only be a good thing as choice is fundamental to the Web.</p>
<p>Flash developers have no need to worry as the platform has expanded to envelope much more than what it has been known for. HTML developers should be grateful to Flash for pushing the Web forward and encouraging growth in HTML, CSS, and JavaScript. It’s mutually beneficial :)</p>
<p>I’ll also note that most Flash developers are also quite well-versed in other languages and platforms simply because of the nature and history of Flash. We are no strangers to HTML!</p></blockquote>
<hr/>
<p>It&#8217;s really too bad we don&#8217;t see more level-thinking along these lines from the big tech sites who always seem to make it an all-out war between Flash and HTML. <em>It&#8217;s not a war</em>. Not even a battle. More like a one-sided quarrel that&#8217;s gone on far, <strong>far</strong> too long now.</p>
]]></content:encoded>
			<wfw:commentRss>http://inflagrantedelicto.memoryspiral.com/2011/03/flash-rules/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HTML5, Flash and RIAs: Industry Experts Have Their Say</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2010/11/html5-flash-and-rias-industry-experts-have-their-say/</link>
		<comments>http://inflagrantedelicto.memoryspiral.com/2010/11/html5-flash-and-rias-industry-experts-have-their-say/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 14:01:57 +0000</pubDate>
		<dc:creator>Joseph Labrecque</dc:creator>
				<category><![CDATA[Article]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=2640</guid>
		<description><![CDATA[Check out the collection of commentary over at ActiveTuts+ from industry experts and community leaders over the manufactured &#8220;HTML vs. Flash&#8221; debate. Some really good points are made, all around. It&#8217;s also good to see that while these statements were &#8230; <a href="http://inflagrantedelicto.memoryspiral.com/2010/11/html5-flash-and-rias-industry-experts-have-their-say/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Check out the <a href="http://active.tutsplus.com/articles/roundups/html5-and-flash-17-industry-experts-have-their-say/">collection of commentary over at ActiveTuts+</a> from industry experts and community leaders over the manufactured &#8220;HTML vs. Flash&#8221; debate. Some really good points are made, all around. It&#8217;s also good to see that while these statements were gathered as individual contributions, they mostly tend to gel into a unified narrative.</p>
<p>I am humbled to have my statement included alongside so many others:</p>
<hr />
<p>Ever since the inception of this debate, I’ve held the position that the majority of dialogue around “HTML vs. Flash” is an intentional misrepresentation of facts and usage. There is no better example of this than Steve Jobs’ counterfactual letter, “Thoughts on Flash”; a message clearly designed to provide ignorant media outlets and technology zealots with cleverly crafted soundbytes used to encourage a position against Flash as a viable platform on the web and on devices.</p>
<p>HTML5 is the natural progression of the HTML specification. As such, it poses no threat to the Flash Platform because HTML and Flash have always existed as complimentary technologies. Why would anyone expect HTML, as a specification, to stand still? In my opinion, it has done so for far too long and is overdue an abundance of rich, new features. Does this in any way harm Flash as a platform? Of course not; Flash advances at a much faster rate than HTML, unrestrained by standards bodies and bickering between opposing corporations. The addition of capabilities with HTML only augments embedded Flash in the browser, as these new capabilities (geolocation data, for example) can be fed into a Flash interface through local connection or via initialization variables.</p>
<p>I actually find it humorous that the fate of Flash is called into question at this time of great advances. Flash Player 10.1 took a long time to emerge since a massive rewrite was required to allow a good experience across desktops, mobile devices, and eventually the digital living room. Now that this foundation has been set, we are seeing some startling growth across numerous areas of platform implementation. The beginnings of which can be seen in the upcoming 3D “Molehill” APIs, the super-performant StageVideo classes, the first glimpses of multi-threading, and upcoming 64-bit runtimes across Windows, Linux, and Mac OS. This doesn’t even consider advances in the AIR runtime and associated frameworks.</p>
<p>It’s a great time to be a Flash developer – and a great time for HTML too!</p>
<hr />
<p><a href="http://active.tutsplus.com/articles/roundups/html5-and-flash-17-industry-experts-have-their-say/">Read more statements at ActiveTuts+</a></p>
]]></content:encoded>
			<wfw:commentRss>http://inflagrantedelicto.memoryspiral.com/2010/11/html5-flash-and-rias-industry-experts-have-their-say/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rendering Flash Content with Dynamic WMODE Attributes &#8211; Revisited</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/11/rendering-flash-content-with-dynamic-wmode-attributes-revisited/</link>
		<comments>http://inflagrantedelicto.memoryspiral.com/2009/11/rendering-flash-content-with-dynamic-wmode-attributes-revisited/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 04:39:14 +0000</pubDate>
		<dc:creator>Joseph Labrecque</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Embed]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1191</guid>
		<description><![CDATA[Screw Internet Explorer! This is one of the many reasons I prefer to avoid having a browser render anything at all for me. Can&#8217;t trust it! Better to just take care of these things before it even hits the browser: &#8230; <a href="http://inflagrantedelicto.memoryspiral.com/2009/11/rendering-flash-content-with-dynamic-wmode-attributes-revisited/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Screw Internet Explorer!  This is one of the many reasons I prefer to avoid having a browser render anything at all for me.  Can&#8217;t trust it!  Better to just take care of these things before it even hits the browser:</p>
<p><em>Java JSP example</em></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #003399;">String</span> embedCode1 <span style="color: #339933;">=</span> item.<span style="color: #006633;">getEmbedCode</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003399;">String</span> expression1 <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&gt;&lt;param&quot;</span><span style="color: #339933;">;</span>
<span style="color: #003399;">String</span> replacement1 <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&gt;&lt;param name=<span style="color: #000099; font-weight: bold;">\&quot;</span>wmode<span style="color: #000099; font-weight: bold;">\&quot;</span> value=<span style="color: #000099; font-weight: bold;">\&quot;</span>transparent<span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;&lt;param&quot;</span><span style="color: #339933;">;</span>
<span style="color: #003399;">String</span> embedCode2 <span style="color: #339933;">=</span> embedCode1.<span style="color: #006633;">replace</span><span style="color: #009900;">&#40;</span>expression1, replacement1<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #003399;">String</span> expression2 <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;embed &quot;</span><span style="color: #339933;">;</span>
<span style="color: #003399;">String</span> replacement2 <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&lt;embed wmode=<span style="color: #000099; font-weight: bold;">\&quot;</span>transparent<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span><span style="color: #339933;">;</span>
<span style="color: #003399;">String</span> embedCodeFinal <span style="color: #339933;">=</span> embedCode2.<span style="color: #006633;">replace</span><span style="color: #009900;">&#40;</span>expression2, replacement2<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;embedHolder&quot;</span><span style="color: #339933;">&gt;</span>
	<span style="color: #339933;">&lt;%=</span>embedCodeFinal<span style="color: #339933;">%&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>What am I talking about? You can read up on my <a href="http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/">original article</a> if it pleases you.</p>
]]></content:encoded>
			<wfw:commentRss>http://inflagrantedelicto.memoryspiral.com/2009/11/rendering-flash-content-with-dynamic-wmode-attributes-revisited/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rendering Flash Content with Dynamic WMODE Attributes</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/</link>
		<comments>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 21:46:18 +0000</pubDate>
		<dc:creator>Joseph Labrecque</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Embed]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=1049</guid>
		<description><![CDATA[We all know that to have Javascript menus and such overlay embedded Flash content, that we need to set the WMODE parameter of our embed code to &#8220;opaque&#8221; or &#8220;transparent&#8221;. This is usually pretty simple if you are generating the &#8230; <a href="http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>We all know that to have Javascript menus and such overlay embedded Flash content, that we need to set the <a href="http://kb2.adobe.com/cps/155/tn_15523.html">WMODE parameter</a> of our embed code to &#8220;opaque&#8221; or &#8220;transparent&#8221;.  This is usually pretty simple if you are generating the embed code yourself through <a href="http://code.google.com/p/swfobject/">SWFObject</a>, or even simply through HTML.  </p>
<p>Here&#8217;s the thing&#8230; what if your application allows users to embed SWF content from <a href="http://www.youtube.com/">YouTube</a>, <a href="http://vimeo.com/">Vimeo</a>, and other such services?  What if your system generates little edit menus that happen to overlap such content?  These services generally do not include the proper WMODE values to allow dynamic overlays.  If you are just accepting SWF embed content, it&#8217;s a simple task to just parse the embed string and store the necessary values in your application to spit back out later using your own embed code formatting.  What if there are just too many unknowns about the content your users may need to embed in the application?  What if you also accept plain HTML embeds from services like <a href="http://twitter.com/">Twitter</a> and <a href="http://www.facebook.com/">Facebook</a> or other non-SWF content that you cannot parse attributes from so predictably? Then you need to do some more tricks to get that WMODE parameter set for any potential Flash content!</p>
<p>I use <a href="http://jquery.com/">jQuery</a> quite a bit when I absolutely need to deal with Javascript and like how it keeps the code from getting out of hand.  It also provides a ton of extra functionality that is really useful when trying to identify certain elements in your HTML document for manipulation.  I&#8217;d already tagged any user embed containing elements with a class of &#8220;embedHolder&#8221;, so using jQuery it would be super simple to identify all user embedded elements.  So the original plan was to use both append() and attr() to modify any object or embed tag nested within any of these tagged container elements in order to add the necessary WMODE parameters:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.embedHolder object&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.embedHolder embed&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;wmode&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;transparent&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>This doesn&#8217;t work though!  It will certainly go through and modify the elements as needed, but since the SWF content has already been drawn into the viewport, the WMODE parameters are ignored.  Thankfully, jQuery is super-awesome and includes both a show() and a hide() method.  When you use hide() on an element, it will remove it from the viewport.  Using show() will make it visible again.  this effectively forces the browser to reload and redraw the SWF content, this time taking the WMODE changes into account perfectly.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.embedHolder object&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.embedHolder embed&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;wmode&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;transparent&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.embedHolder&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #006600; font-style: italic;">//a bunch of other code you may have</span>
&nbsp;
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.embedHolder&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">show</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Awesome!</p>
<hr />
<p>UPDATE 1: Errr&#8230; awesome in some browsers.  As Josh points out below, the actual behavior differs quite a bit between browsers.  No problem- I have a plan and will update this tomorrow with a solution. (hopefully!)</p>
<p>UPDATE 2: Yeah- IE is the only problem browser I&#8217;ve come across.  Surprised?  No.</p>
<p>UPDATE 3: Here is a solution for all browsers (even IE!):</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.embedHolder object&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.embedHolder embed&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;wmode&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;transparent&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.embedHolder&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span>
		<span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
			<span style="color: #003366; font-weight: bold;">var</span> cont <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;div class=&quot;embedHolder&quot;&gt;'</span> <span style="color: #339933;">+</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">replaceWith</span><span style="color: #009900;">&#40;</span>cont<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Now we are explicitly removing elements from the DOM and then reloading them into the same node, forcing the browser to redraw the SWF and activate the proper WMODE.</p>
]]></content:encoded>
			<wfw:commentRss>http://inflagrantedelicto.memoryspiral.com/2009/09/rendering-flash-content-with-dynamic-wmode-attributes/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>HTML Links in Flex</title>
		<link>http://inflagrantedelicto.memoryspiral.com/2008/10/html-links-in-flex/</link>
		<comments>http://inflagrantedelicto.memoryspiral.com/2008/10/html-links-in-flex/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 15:51:55 +0000</pubDate>
		<dc:creator>Joseph Labrecque</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://inflagrantedelicto.memoryspiral.com/?p=315</guid>
		<description><![CDATA[I&#8217;ve never found the need to have HTML links in Flex behave (and look) like their true HTML counterparts, but a student recently asked how she could get HTML links defined in a Text control to behave like regular HTML &#8230; <a href="http://inflagrantedelicto.memoryspiral.com/2008/10/html-links-in-flex/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve never found the need to have HTML links in Flex behave (and look) like their true HTML counterparts, but a student recently asked how she could get HTML links defined in a Text control to behave like regular HTML links.  After digging around, I found a lot of references to this problem but the solution turned up at <a href="http://www.flexfreaks.com/forums/viewtopic.php?id=6">Flex Freaks</a>:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
</pre></td><td class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Application</span> xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;absolute&quot;</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">&lt;![CDATA[</span>
&nbsp;
<span style="color: #339933;">import mx.core.mx_internal;</span>
&nbsp;
<span style="color: #339933;">public function textHandler(e:Event):void</span>
<span style="color: #339933;">{</span>
<span style="color: #339933;">    var styleSheet:StyleSheet = new StyleSheet();</span>
<span style="color: #339933;">    styleSheet.setStyle(&quot;a:link&quot;, { textDecoration: &quot;underline&quot;, color: &quot;#30F&quot; });</span>
<span style="color: #339933;">    e.currentTarget.mx_internal::styleSheet = styleSheet;</span>
<span style="color: #339933;">}</span>
&nbsp;
<span style="color: #339933;">]]&gt;</span>
<span style="color: #339933;">&lt;/mx:Script&gt;</span> 
&nbsp;
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:Text</span> initialize=<span style="color: #ff0000;">&quot;this.textHandler(event)&quot;</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:htmlText</span><span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;">&lt;!<span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span></span>
<span style="color: #000000;">        You may &lt;a href=<span style="color: #ff0000;">&quot;&quot;</span><span style="color: #7400FF;">&gt;</span></span>click<span style="color: #000000;">&lt;/a<span style="color: #7400FF;">&gt;</span></span> here.
    ]]&gt;
    <span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:htmlText</span><span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Text</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:Application</span><span style="color: #7400FF;">&gt;</span></span></pre></td></tr></table></div>

<p>Apparently, this should not be used with any degree of reliability so far as future-proofing is concerned since the mx.core.mx_internal class may flux between versions of the Flex SDK.</p>
<p>Listed in the rumored Flex 4 improvements are support for CSS descendant selectors, ID selectors, and space-delimited style names.  Something like this should really be handled via CSS so here&#8217;s hoping that this will soon be a much simpler process.</p>
<p>Not sure if I&#8217;ll ever need this in the future, but in the case that I do- I know it&#8217;s here for easy access.</p>
]]></content:encoded>
			<wfw:commentRss>http://inflagrantedelicto.memoryspiral.com/2008/10/html-links-in-flex/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

