<?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>SizzlaBlog &#187; interface</title>
	<atom:link href="http://www.blog.sizzla-media.co.uk/tag/interface/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blog.sizzla-media.co.uk</link>
	<description>Flash, Web and Javascript development</description>
	<lastBuildDate>Sun, 15 Aug 2010 11:41:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<image>
  <link>http://www.blog.sizzla-media.co.uk</link>
  <url>http://blog.sizzla-media.co.uk/favicon.ico</url>
  <title>SizzlaBlog</title>
</image>
		<item>
		<title>Browser &amp; User interface templates</title>
		<link>http://www.blog.sizzla-media.co.uk/2008/10/27/browser-user-interface-templates/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2008/10/27/browser-user-interface-templates/#comments</comments>
		<pubDate>Mon, 27 Oct 2008 12:37:56 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[interface]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/?p=175</guid>
		<description><![CDATA[While creating mock-ups of sites its often useful so see what it will look like in a browser window. For this reason I have created a png of a desktop and mobile safari interface. I find that this is useful (&#8230;)</p><p><a href="http://www.blog.sizzla-media.co.uk/2008/10/27/browser-user-interface-templates/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>While creating mock-ups of sites its often useful so see what it will look like in a browser window. For this reason I have created a png of a desktop and mobile safari interface.</p>
<p>I find that this is useful for clients to get a better feel of what a site will look like and also as a designer to scale images and element blocks.</p>
<p>Below is also a simple script that will detect if a user if viewing the site from an iPhone/iPod touch and redirect them to a optimised version. It is always good practice to offer a link to the full desktop experience.</p>
<blockquote>
<div><span class="style2">&lt;script language=javascript&gt;<br />
&lt;!&#8211;<br />
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))<br />
{<br />
location.href=&#8217;http://www.iphonefriendlyurl.com&#8217;;<br />
}<br />
&#8211;&gt;<br />
&lt;/script&gt;</span></div>
</blockquote>
<p>Also, <a href="http://www.teehanlax.com/blog/?p=447" target="_blank">check this out</a> for creating iPhone user interface templates.</p>
<p><a title="download" href="http://www.blog.sizzla-media.co.uk/wp-content/uploads/2008/10/templates.zip" target="_self">Download the templates here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2008/10/27/browser-user-interface-templates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Flash 9 Motion Detection &#8211; Minority Report Style (source code)</title>
		<link>http://www.blog.sizzla-media.co.uk/2007/10/11/flash-9-motion-detection-minority-report-style-source-code/</link>
		<comments>http://www.blog.sizzla-media.co.uk/2007/10/11/flash-9-motion-detection-minority-report-style-source-code/#comments</comments>
		<pubDate>Thu, 11 Oct 2007 18:42:17 +0000</pubDate>
		<dc:creator>Leon</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[minority report]]></category>
		<category><![CDATA[motion detection]]></category>

		<guid isPermaLink="false">http://www.blog.sizzla-media.co.uk/index.php/2007/10/11/flash-9-motion-detection-minority-report-style-source-code/</guid>
		<description><![CDATA[I have finally managed to get together the source files for the Motion Detection script. The script allows you to control an interface simply by waving your hands in the air infront of a camera. This is pretty cool if (&#8230;)</p><p><a href="http://www.blog.sizzla-media.co.uk/2007/10/11/flash-9-motion-detection-minority-report-style-source-code/">Read the rest of this entry &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.blog.sizzla-media.co.uk/wp-content/uploads//flash.thumbnail.jpg" /></p>
<p>I have finally managed to get together the source files for the Motion Detection script. The script allows you to control an interface simply by waving your hands in the air infront of a camera. This is pretty cool if you want to add some extra interactivity to your site. The original post can be found <a href="http://www.blog.sizzla-media.co.uk/index.php/2007/09/24/flash-9-motion-detection/">here</a>. This original code was taken from Web Designer Mag. They hold all the copyrights etc</p>
<p>The code is below, I wish I had more time to go through it fully and comment it out but I don&#8217;t. If you need any help, add a comment to this post.</p>
<blockquote><p>import flash.display.*;</p>
<p>import flash.geom.*;</p>
<p>var cam:Camera = Camera.get();</p>
<p>sizeX = cam.width;</p>
<p>sizeY = cam.height;</p>
<p>cam.setMode(544,396,25);</p>
<p>vid.attachVideo(cam);</p>
<p>vid._width = cam.width;</p>
<p>vid._height = cam.height;</p>
<p>mov_pos_array = new Array(&#8220;0&#8243;, &#8220;0&#8243;, &#8220;-544&#8243;, &#8220;-1088&#8243;, &#8220;-1632&#8243;);</p>
<p>newX = 0;</p>
<p>Xspeed = 0;</p>
<p>content_mc.onEnterFrame = function() {</p>
<p>Xspeed = ((this._x-newX)/2+Xspeed)/5;</p>
<p>this._x -= Xspeed;</p>
<p>};</p>
<p>active = false;</p>
<p>aCount = 0;</p>
<p>start_btn.onPress = function() {</p>
<p>active = true;</p>
<p>start_btn._visible = false;</p>
<p>start_btn.enabled = false;</p>
<p>};</p>
<p>now = new BitmapData(160, 120);</p>
<p>before = new BitmapData(160, 120);</p>
<p>rect = new Rectangle(0, 0, 160, 120);</p>
<p>pt = new Point(0, 0);</p>
<p>sizeDif = 160/cam.width;</p>
<p>thisFrame1=0;</p>
<p>thisFrame2=0;</p>
<p>thisFrame3=0;</p>
<p>thisFrame4=0;</p>
<p>over1=false;</p>
<p>over2=false;</p>
<p>over3=false;</p>
<p>over4=false;</p>
<p>onEnterFrame = function () {</p>
<p>if (!cam.muted &amp;&amp; active == true) {</p>
<p>now.draw(vid);</p>
<p>now.draw(before,new Matrix(),new ColorTransform(),&#8217;difference&#8217;);</p>
<p>now.threshold(now,rect,pt,&#8217;&gt;&#8217;,0xff111111,0xffffffff);</p>
<p>before.draw(vid);</p>
<p>for (i=1; i&lt;5; i++) {</p>
<p>_root["ballNew"+i+"Y"] = (_root["impact"+i]._y/cam.height)*120;</p>
<p>_root["ballNew"+i+"X"] = _root["impact"+i]._width/2+_root["impact"+i]._x;</p>
<p>_root["ballNew"+i+"X"] = 160-(_root["ballNew"+i+"X"]*sizeDif);</p>
<p>_root["val"+i] = now.getPixel(_root["ballNew"+i+"X"], _root["ballNew"+i+"Y"]);</p>
<p>if (_root["val"+i]&gt;16700000) {</p>
<p>_root["thisFrame"+i] +=1;</p>
<p>_root["over"+i]=true;</p>
<p>}</p>
<p>if (_root["thisFrame"+i] == 2){</p>
<p>_root["impact"+i]._alpha = 40;</p>
<p>newX = mov_pos_array[i];</p>
<p>_root["thisFrame"+i] = 0;</p>
<p>_root["over"+i]=false;</p>
<p>} else {</p>
<p>_root["impact"+i]._alpha = 100;</p>
<p>}</p>
<p>}</p>
<p>rotated = Xspeed/4;</p>
<p>disk_mc._rotation+=rotated;</p>
<p>}</p>
<p>};</p>
<p>checkglitch = function(){</p>
<p>for (i=1; i&lt;5; i++) {</p>
<p>if (_root["over"+i]==true){</p>
<p>_root["thisFrame"+i] = 0;</p>
<p>_root["over"+i] = false;</p>
<p>}</p>
<p>}</p>
<p>};</p>
<p>inter = setInterval(this, &#8220;checkglitch&#8221;, 1200);</p></blockquote>
<p>To see an example, click <a href="http://sizzla-media.co.uk/motion.html">here</a>.</p>
<p>Finally, what you have been waiting for: the <a href="http://www.blog.sizzla-media.co.uk/wp-content/uploads//motiondetection.zip" target="_blank">source</a> code.</p>
<p>Here is a PDF of the tutorial. Sorry for the low image quality. Hope it helps</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blog.sizzla-media.co.uk/2007/10/11/flash-9-motion-detection-minority-report-style-source-code/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.223 seconds -->
