<?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>littled.net &#187; flash</title>
	<atom:link href="http://www.littled.net/new/category/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.littled.net/new</link>
	<description>David Little&#039;s home on the Web</description>
	<lastBuildDate>Mon, 15 Mar 2010 16:34:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>JQuery dialogs and embedded Flash movies</title>
		<link>http://www.littled.net/new/2009/12/09/jquery-dialogs-and-embedded-flash-movies/</link>
		<comments>http://www.littled.net/new/2009/12/09/jquery-dialogs-and-embedded-flash-movies/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 17:08:12 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.littled.net/new/2009/12/09/jquery-dialogs-and-embedded-flash-movies/</guid>
		<description><![CDATA[
Just hit a snag with a jQuery dialog overlay which was supposed to display over an embedded Flash file &#8212; whatever the z-index of the dialog, it always appeared behind the movie (and flickered insanely which was doubly annoying). Thankfully, it&#8217;s easy to fix this problem with the addition of an extra parameter in your [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />
<p>Just hit a snag with a jQuery dialog overlay which was supposed to display over an embedded Flash file &#8212; whatever the z-index of the dialog, it always appeared <em>behind</em> the movie (and flickered insanely which was doubly annoying). Thankfully, it&#8217;s easy to fix this problem with the addition of an extra parameter in your embed code:</p>
<p />
<div>&lt;embed &#8230;&nbsp;wmode=&#8221;transparent&#8221; /&gt;</div>
<p />
<div><a href="http://stackoverflow.com/questions/326196/ff3-windows-css-z-index-problem-with-youtube-player">Thanks to Stackoverflow for the solution</a>.</div>
<p style="font-size: 10px;">  <a href="http://posterous.com">Posted via email</a>   from <a href="http://littled.posterous.com/jquery-dialogs-and-embedded-flash-movies">What&#8217;s this for?</a>  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.littled.net/new/2009/12/09/jquery-dialogs-and-embedded-flash-movies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plone and Flash Player 10: Opera&#8217;s revenge</title>
		<link>http://www.littled.net/new/2008/10/30/plone-and-flash-player-10-operas-revenge/</link>
		<comments>http://www.littled.net/new/2008/10/30/plone-and-flash-player-10-operas-revenge/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 13:22:14 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[blog-post]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[plone]]></category>

		<guid isPermaLink="false">http://www.littled.net/new/?p=98</guid>
		<description><![CDATA[An addendum to the problems I was having with Plone and Flash Player 10. Looks like another problem occurs with Opera if you change the content disposition header to &#8220;inline&#8221;. Basically, screeds of nonsense displaying instead of the Flash movie or the fall-back image. I&#8217;m not sure how widespread this problem is and I&#8217;m not [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />An addendum to the problems I was having with <a href="new/2008/10/17/plone-and-flash-player-10/">Plone and Flash Player 10</a>. Looks like another problem occurs with Opera if you change the content disposition header to &#8220;inline&#8221;. Basically, screeds of nonsense displaying instead of the Flash movie or the fall-back image. I&#8217;m not sure how widespread this problem is and I&#8217;m not prepared to do lots of testing but for the record this was happening with Plone 2.5.3 / SWFObject to embed the Flash file.  Various versions of Opera were tested &#8212; for instance I&#8217;m running version 9.10 on Windows.</p>
<p>I got round it with a bit of old-fashioned browser detection. Basically, Opera&#8217;s quite happy to have the content-disposition header left alone, so I needed a direct path to the Flash file for Opera and a path that took in my header setting script for everyone else:</p>
<pre>if (navigator.userAgent.indexOf('Opera')&gt;-1) {
   swfurl = '&amp;dtml-portal_url;/path/to/flash/myflash.swf' }  else {
   swfurl = '&amp;dtml-portal_url;/path/to/flash/showflash?flashvid=myflash.swf'
}
swfobject.embedSWF(swfurl, "my-dom-id", "435", "290", "9.0.115");
</pre>
<p>Not sure why Opera should behave differently to other browsers here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.littled.net/new/2008/10/30/plone-and-flash-player-10-operas-revenge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Plone and Flash Player 10</title>
		<link>http://www.littled.net/new/2008/10/17/plone-and-flash-player-10/</link>
		<comments>http://www.littled.net/new/2008/10/17/plone-and-flash-player-10/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 16:10:07 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[UI]]></category>
		<category><![CDATA[blog-post]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[non-plone]]></category>
		<category><![CDATA[plone]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[zope]]></category>

		<guid isPermaLink="false">http://www.littled.net/new/?p=94</guid>
		<description><![CDATA[Another pyrrhic victory maybe, but something that has made me exceptionally happy this afternoon. Basically, yesterday I upgraded my version of Flash Player to version 10 only to find that the Flash files on our Plone-powered site no longer worked.
The lovely folks at SWFObject helped to identify why this was happening &#8212; nothing to do [...]]]></description>
			<content:encoded><![CDATA[<p id="top" />Another pyrrhic victory maybe, but something that has made me exceptionally happy this afternoon. Basically, yesterday I upgraded my version of Flash Player to version 10 only to find that the Flash files on our Plone-powered site no longer worked.</p>
<p>The lovely folks at <a href="http://code.google.com/p/swfobject/">SWFObject</a> helped to identify why this was happening &#8212; nothing to do with SWFObject at all but the fact that <a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes.html">Flash Player 10 implements some new security &#8220;features&#8221;</a>. I managed to isolate it to the fact that Plone serves up ATFiles with the header, &#8220;Content-Disposition: attachment&#8221;. Flash Player 10 ignores files served up with this header, so you need to override this and set it to &#8220;Content-Disposition: inline;&#8221;.</p>
<p>I came up with this solution which may not be overly elegant but at least it works. I created a skin-level Python script that sets response headers before returning the file:</p>
<p>showflash.py</p>
<pre>request = container.REQUEST
RESPONSE =  request.RESPONSE
flashvid = request['flashvid']
cd = 'inline; filename=%s' %(context.id)
RESPONSE.setHeader('Content-Disposition', cd)
return context[flashvid]</pre>
<p>Then, when I embed the video with SWFObject I call it thus,</p>
<pre>&lt;script type="text/javascript"&gt;
   swfobject.embedSWF("&amp;dtml-portal_url;/path/to/flash/showflash?flashvid=myflash.swf", "my-dom-id", "435", "290", "9.0.115");
&lt;/script&gt;</pre>
<p>This may be better handled by a product like Plone4Artists Video but it certainly works as a fix for us.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.littled.net/new/2008/10/17/plone-and-flash-player-10/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
