<?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>.:Neil Smith Designs:.  Web Design and Development &#187; flash</title>
	<atom:link href="http://www.neilsmithdesigns.co.uk/blog/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.neilsmithdesigns.co.uk/blog</link>
	<description>Web development and design.  Professional design for corperate websites.  Every day solutions for all websites.</description>
	<lastBuildDate>Tue, 04 Oct 2011 19:01:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flash &#8211; using an flv with allowfullscreen and wmode</title>
		<link>http://www.neilsmithdesigns.co.uk/blog/2008/12/flash-using-an-flv-with-allowfullscreen-and-wmode/</link>
		<comments>http://www.neilsmithdesigns.co.uk/blog/2008/12/flash-using-an-flv-with-allowfullscreen-and-wmode/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 19:53:32 +0000</pubDate>
		<dc:creator>nessasmith</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[allowfullscreen]]></category>
		<category><![CDATA[control flash]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[media player]]></category>
		<category><![CDATA[wmode]]></category>

		<guid isPermaLink="false">http://www.neilsmithdesigns.co.uk/blog/?p=26</guid>
		<description><![CDATA[

Flash

I have recently stumbled into a problem with a media section of a site I am working on where users can view video clips.  As is the norm now-days, I am using an flv that progressively downloads from my web server to the client.  The area is pretty much like a YouTube section of the [...]]]></description>
			<content:encoded><![CDATA[<dl id="attachment_27" class="wp-caption alignleft" style="width: 140px;">
<dt class="wp-caption-dt"><a href="http://www.neilsmithdesigns.co.uk/blog/wp-content/uploads/2008/12/flash.jpg"><img class="size-medium wp-image-27" title="flash" src="http://www.neilsmithdesigns.co.uk/blog/wp-content/uploads/2008/12/flash.jpg" alt="Flash" width="130" height="130" /></a></dt>
<dd class="wp-caption-dd">Flash</dd>
</dl>
<p>I have recently stumbled into a problem with a media section of a site I am working on where users can view video clips.  As is the norm now-days, I am using an flv that progressively downloads from my web server to the client.  The area is pretty much like a YouTube section of the site where the user picks or searches from a database of video clips, then upon choosing their clip views this on another page.</p>
<p>The problem reared its ugly head because unlike youtube, this site used a menu that drops down over the flash video.</p>
<p>This is easily curable using the wmode=transparent  parameter that allows elements to be displayed over the flash object.</p>
<blockquote><p>&lt;param name=&#8221;wmode&#8221; value=&#8221;transparent&#8221;&gt; &#8211; to be added to the OBJECT tag<br />
wmode=&#8221;transparent&#8221; &#8211; to be added to the EMBED tag</p></blockquote>
<p>However, my issue came with also wanting the user to be able to display the video in full screen.  At first I thought it was just a case of using a skin with the full screen option.  But upon reading further I found I also needed the  &#8220;allowfullscreen&#8221; parameter set to true.<br />
Again, not a problem, once it was set it worked like a dream&#8230; until I set both wmode and allowfullscreen.  That&#8217;s when things fell over.</p>
<p>This is down to the software scaling which allowfullscreen uses to take over the users monitor.</p>
<p>I had a few options&#8230;</p>
<ul>
<li>Force users to upgrade their flash player as this problem is allegedly fixed in the very latest flash player &#8211; According to our stats this would impact on a lot of users, I always like to design to accommodate the highest percentage of users.<br />
<a href="http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html" target="_blank">http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html</a><br />
<a href="http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode_print.html" target="_blank">http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode_print.html</a></p>
<p><div id="attachment_28" class="wp-caption alignright" style="width: 207px"><a href="http://www.neilsmithdesigns.co.uk/blog/wp-content/uploads/2008/12/fullscreen.gif"></a> <a href="http://www.neilsmithdesigns.co.uk/blog/wp-content/uploads/2008/12/fullscreen.gif"><img class="size-medium wp-image-28" title="fullscreen" src="http://www.neilsmithdesigns.co.uk/blog/wp-content/uploads/2008/12/fullscreen.gif" alt="Full Screen mode" width="197" height="108" /></a><p class="wp-caption-text">Full Screen mode</p></div></li>
<li>Change the menu &#8211; Menus should always be consistent across any website&#8230; so not an option</li>
<li>Open a new kiosk style media player&#8230;</li>
</ul>
<p>Although it wasn&#8217;t a perfect solution, opening up a new media player would allow the full screen and provide another opportunity to display more information related to the video to the user.  Therefore this is what I opted for.</p>
<p>The final obstacle was stopping the current video (if playing) when the user pops up the media player.<br />
This is possible using javascript to communicate with the current flash movie and then popping up the media player in the same function.<br />
I found <a href="http://www.permadi.com/tutorial/flashjscommand/" target="_blank">http://www.permadi.com/tutorial/flashjscommand/</a>  &#8211; very useful.</p>
<p>So, there we go.  For the time being that&#8217;s my solution.  Still not perfect though, so I will keep an eye on my stats to see when the majority of users have the latest flash player installed.</p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/btn/button_61110" title="Flash - using an flv with allowfullscreen and wmode" url="http://www.neilsmithdesigns.co.uk/blog/2008/12/flash-using-an-flv-with-allowfullscreen-and-wmode/"></script>]]></content:encoded>
			<wfw:commentRss>http://www.neilsmithdesigns.co.uk/blog/2008/12/flash-using-an-flv-with-allowfullscreen-and-wmode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

