<?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>Liam O&#039;Donnell</title>
	<atom:link href="http://www.spikything.com/blog/index.php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spikything.com/blog</link>
	<description>part designer. part developer. all creative</description>
	<lastBuildDate>Tue, 19 Jan 2010 10:35:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A History of the World</title>
		<link>http://www.spikything.com/blog/index.php/2010/01/19/a-history-of-the-world/</link>
		<comments>http://www.spikything.com/blog/index.php/2010/01/19/a-history-of-the-world/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 10:35:34 +0000</pubDate>
		<dc:creator>Liam</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[Flash 10]]></category>

		<guid isPermaLink="false">http://www.spikything.com/blog/?p=219</guid>
		<description><![CDATA[<a href="http://www.spikything.com/blog/index.php/2010/01/19/a-history-of-the-world/"><img align="left" hspace="5" width="150" height="150" src="http://www.spikything.com/blog/wp-content/uploads/2010/01/ahow-150x150.jpg" class="alignleft tfe wp-post-image" alt="" title="A History of the World" /></a>I just returned from a trip round SE Asia to see my last project launch. Called &#8216;A History of the World in 100 Objects&#8216;, it&#8217;s a joint venture between BBC Radio 4 and the British Museum to chart human history in a new way. I developed the concept for the Flash 3D object explorer with [...]]]></description>
			<content:encoded><![CDATA[<p>I just returned from a trip round SE Asia to see my last project launch. Called &#8216;<a href="http://www.bbc.co.uk/ahistoryoftheworld/">A History of the World in 100 Objects</a>&#8216;, it&#8217;s a joint venture between BBC Radio 4 and the British Museum to chart human history in a new way. I developed the concept for the Flash 3D object explorer with the guys at <a href="http://www.wearegt.com">GT</a> and built it using Flash 10&#8217;s native 3D capabilities. Users are able to explorer objects from throughout human history in a sort of 3D timeline and even make history by adding their own. Here&#8217;s the TV advert for the series:</p>
<p><object width="500" height="307"><param name="movie" value="http://www.youtube.com/v/qsxFHXVfyYA&#038;hl=en_GB&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/qsxFHXVfyYA&#038;hl=en_GB&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="500" height="307"></embed></object></p>
<p>Since it is expected to grow to up to 10,000 objects over the next 5 years, I used all the tricks in the book to optimise loading, rendering and memory management &#8211; which will bore most people to tears, so that&#8217;s for another time. Check out the Flash site itself <a href="http://www.bbc.co.uk/ahistoryoftheworld/">here</a>.</p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2010%2F01%2F19%2Fa-history-of-the-world%2F&amp;linkname=A%20History%20of%20the%20World" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2010%2F01%2F19%2Fa-history-of-the-world%2F&amp;linkname=A%20History%20of%20the%20World" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2010%2F01%2F19%2Fa-history-of-the-world%2F&amp;linkname=A%20History%20of%20the%20World" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a> <a href="http://www.addtoany.com/add_to/ping?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2010%2F01%2F19%2Fa-history-of-the-world%2F&amp;linkname=A%20History%20of%20the%20World" title="Ping" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/ping.png" width="16" height="16" alt="Ping"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2010%2F01%2F19%2Fa-history-of-the-world%2F&amp;linkname=A%20History%20of%20the%20World" target="_blank">Share/Save</a>]]></content:encoded>
			<wfw:commentRss>http://www.spikything.com/blog/index.php/2010/01/19/a-history-of-the-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mind control</title>
		<link>http://www.spikything.com/blog/index.php/2009/12/03/mind-control/</link>
		<comments>http://www.spikything.com/blog/index.php/2009/12/03/mind-control/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 23:40:37 +0000</pubDate>
		<dc:creator>Liam</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[apps]]></category>

		<guid isPermaLink="false">http://www.spikything.com/blog/?p=213</guid>
		<description><![CDATA[<a href="http://www.spikything.com/blog/index.php/2009/12/03/mind-control/"><img align="left" hspace="5" width="150" height="150" src="http://www.spikything.com/blog/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>Here&#8217;s one of my old games being controlled with brainwaves in a homebrew EEG device cobbled together by Italian Hacker Mastro Gippo:

    Share/Save]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s one of my old games being controlled with brainwaves in a homebrew EEG device cobbled together by Italian Hacker <a href="http://www.mastrogippo.it/eeg/">Mastro Gippo</a>:</p>
<p><object width="500" height="375"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=7943864&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=7943864&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="500" height="375"></embed></object></p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F12%2F03%2Fmind-control%2F&amp;linkname=Mind%20control" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F12%2F03%2Fmind-control%2F&amp;linkname=Mind%20control" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F12%2F03%2Fmind-control%2F&amp;linkname=Mind%20control" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a> <a href="http://www.addtoany.com/add_to/ping?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F12%2F03%2Fmind-control%2F&amp;linkname=Mind%20control" title="Ping" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/ping.png" width="16" height="16" alt="Ping"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F12%2F03%2Fmind-control%2F&amp;linkname=Mind%20control" target="_blank">Share/Save</a>]]></content:encoded>
			<wfw:commentRss>http://www.spikything.com/blog/index.php/2009/12/03/mind-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MouseWheelTrap &#8211; how to stop simultaneous Flash / browser scrolling in AS3</title>
		<link>http://www.spikything.com/blog/index.php/2009/11/27/stop-simultaneous-flash-browser-scrolling/</link>
		<comments>http://www.spikything.com/blog/index.php/2009/11/27/stop-simultaneous-flash-browser-scrolling/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 00:46:33 +0000</pubDate>
		<dc:creator>Liam</dc:creator>
				<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[externalinterface]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mousewheel]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://www.spikything.com/blog/?p=206</guid>
		<description><![CDATA[<a href="http://www.spikything.com/blog/index.php/2009/11/27/stop-simultaneous-flash-browser-scrolling/"><img align="left" hspace="5" width="150" height="150" src="http://www.spikything.com/blog/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>I recently stumbled over a new AS3 gotcha that seems to be bugging a lot of the Flash community. Apparently a new 'feature' of AS3, whereby using the mousewheel inside an embedded Flash movie still scrolls the surrounding browser window (if it has enough content, that is).
This didn't happen in AS2. If a Flash movie [...]]]></description>
			<content:encoded><![CDATA[<p>I recently stumbled over a new AS3 gotcha that seems to be <a href="http://www.actionscript.org/forums/showthread.php3?t=176614" target="_blank">bugging</a> a lot of the Flash community. Apparently a new 'feature' of AS3, whereby using the mousewheel inside an embedded Flash movie still scrolls the surrounding browser window (if it has enough content, that is).</p>
<p>This didn't happen in AS2. If a Flash movie had focus, mousewheel events weren't sent to the browser window. It wasn't a problem in FireFox either, until a recent update and adversely affects any AS3 Flash app embedded in an HTML page where you might want to scroll or zoom with the mousewheel while over the Flash, instead of the scrolling the browser window.</p>
<p>So, I decided to cook up some code to fix this. While it's early version and isn't perfect, it suits my purposes, is easy to set up and doesn't require any external JavaScript - so I'd thought I'd share it with the world, in case Adobe never get around to addressing this 'feature'.</p>
<p>Introducing <strong>MouseWheelTrap</strong>. A handy little utility class that traps mousewheel events while the mouse is over the Flash, so your app scrolls how it was intended to. I've tested it with SWFObject on PC IE and FireFox, but not with SWFMacMouseWheel on Mac (if someone could tell me if it works). I decided against using jQuery for trapping mouse events, partly out of laziness, partly because many people have no control over the HTML that embeds their Flash app and therefore can't add custom JavaScript.</p>
<p>Setting up MouseWheelTrap is easy:</p>
<li>Download the <a href="/downloads/as3/utils/MouseWheelTrap.zip">MouseWheelTrap</a> ZIP package, or just the <a href="/downloads/as3/utils/MouseWheelTrap.as">AS file</a>.</li>
<li>Unzip the package and have a look at the demo, or just take the MouseWheelTrap.as file and put it in the com.spikything.utils folder into your own project or classpath.</li>
<li>Import the utility and set it up somewhere in your main class like so:</li>
<div class="syntax_hilite">
<div id="actionscript-2">
<div class="actionscript"><span style="color: #0066CC;">import</span> com.<span style="color: #006600;">spikything</span>.<span style="color: #006600;">utils</span>.<span style="color: #006600;">MouseWheelTrap</span>;<br />
MouseWheelTrap.<span style="color: #006600;">setup</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span><span style="color: #66cc66;">&#41;</span>;</div>
</div>
</div>
<p>
Simple huh? Let me know how you get on...</p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F11%2F27%2Fstop-simultaneous-flash-browser-scrolling%2F&amp;linkname=MouseWheelTrap%20%26%238211%3B%20how%20to%20stop%20simultaneous%20Flash%20%2F%20browser%20scrolling%20in%20AS3" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F11%2F27%2Fstop-simultaneous-flash-browser-scrolling%2F&amp;linkname=MouseWheelTrap%20%26%238211%3B%20how%20to%20stop%20simultaneous%20Flash%20%2F%20browser%20scrolling%20in%20AS3" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F11%2F27%2Fstop-simultaneous-flash-browser-scrolling%2F&amp;linkname=MouseWheelTrap%20%26%238211%3B%20how%20to%20stop%20simultaneous%20Flash%20%2F%20browser%20scrolling%20in%20AS3" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a> <a href="http://www.addtoany.com/add_to/ping?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F11%2F27%2Fstop-simultaneous-flash-browser-scrolling%2F&amp;linkname=MouseWheelTrap%20%26%238211%3B%20how%20to%20stop%20simultaneous%20Flash%20%2F%20browser%20scrolling%20in%20AS3" title="Ping" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/ping.png" width="16" height="16" alt="Ping"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F11%2F27%2Fstop-simultaneous-flash-browser-scrolling%2F&amp;linkname=MouseWheelTrap%20%26%238211%3B%20how%20to%20stop%20simultaneous%20Flash%20%2F%20browser%20scrolling%20in%20AS3" target="_blank">Share/Save</a>]]></content:encoded>
			<wfw:commentRss>http://www.spikything.com/blog/index.php/2009/11/27/stop-simultaneous-flash-browser-scrolling/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CoolIris type thing in 30 lines</title>
		<link>http://www.spikything.com/blog/index.php/2009/10/23/cooliris-type-thing-in-30-lines/</link>
		<comments>http://www.spikything.com/blog/index.php/2009/10/23/cooliris-type-thing-in-30-lines/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 23:20:31 +0000</pubDate>
		<dc:creator>Liam</dc:creator>
				<category><![CDATA[3D]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[effects]]></category>
		<category><![CDATA[Flash 10]]></category>
		<category><![CDATA[source code]]></category>

		<guid isPermaLink="false">http://www.spikything.com/blog/?p=202</guid>
		<description><![CDATA[<a href="http://www.spikything.com/blog/index.php/2009/10/23/cooliris-type-thing-in-30-lines/"><img align="left" hspace="5" width="150" height="150" src="http://www.spikything.com/blog/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>


package &#123; // Piclens type thing in 30 lines (FP10+) Liam O'Donnell - spikything.com
&#160; &#160; import flash.display.Sprite;
&#160; &#160; import flash.events.Event;
&#160; &#160; public class Main extends Sprite &#123;
&#160; &#160; &#160; &#160; private var container :Sprite;
&#160; &#160; &#160; &#160; private var imageGrid :Sprite;
&#160; &#160; &#160; &#160; private var images :Array = &#91;&#93;;
&#160; &#160; &#160; &#160; public function [...]]]></description>
			<content:encoded><![CDATA[<p><embed src="/things/3d/simple3d.swf" width="500" height="300"></embed></p>
<div class="syntax_hilite">
<div id="actionscript-4">
<div class="actionscript">package <span style="color: #66cc66;">&#123;</span> <span style="color: #808080; font-style: italic;">// Piclens type thing in 30 lines (FP10+) Liam O'Donnell - spikything.com</span><br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">display</span>.<span style="color: #006600;">Sprite</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">import</span> flash.<span style="color: #006600;">events</span>.<span style="color: #006600;">Event</span>;<br />
&nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Main <span style="color: #0066CC;">extends</span> Sprite <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> container :Sprite;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> imageGrid :Sprite;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> images :<span style="color: #0066CC;">Array</span> = <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#93;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> Main<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; container = addChild<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> as Sprite;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imageGrid = container.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> as Sprite;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> i:uint = <span style="color: #cc66cc;">0</span>; i &lt;<span style="color: #cc66cc;">200</span>; i++<span style="color: #66cc66;">&#41;</span> images.<span style="color: #0066CC;">push</span><span style="color: #66cc66;">&#40;</span>getItem<span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; images.<span style="color: #0066CC;">sortOn</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">"z"</span>, <span style="color: #0066CC;">Array</span>.<span style="color: #006600;">NUMERIC</span> | <span style="color: #0066CC;">Array</span>.<span style="color: #006600;">DESCENDING</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">for</span> each <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> item:Sprite <span style="color: #b1b100;">in</span> images<span style="color: #66cc66;">&#41;</span> imageGrid.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>item<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addEventListener<span style="color: #66cc66;">&#40;</span>Event.<span style="color: #006600;">ENTER_FRAME</span>, update<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> getItem<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">index</span>:uint<span style="color: #66cc66;">&#41;</span>:Sprite <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">var</span> item:Sprite = <span style="color: #000000; font-weight: bold;">new</span> Sprite<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; item.<span style="color: #006600;">x</span> = -<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">200</span> / <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span> * <span style="color: #cc66cc;">210</span> / <span style="color: #cc66cc;">2</span> + <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">index</span> / <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span> * <span style="color: #cc66cc;">210</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; item.<span style="color: #006600;">y</span> = <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">index</span> % <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span> * <span style="color: #cc66cc;">160</span> - <span style="color: #cc66cc;">40</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; item.<span style="color: #006600;">z</span> = <span style="color: #cc66cc;">100</span> + <span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> * <span style="color: #cc66cc;">2000</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; item.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">beginFill</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">Math</span>.<span style="color: #0066CC;">random</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> * 0xffffff<span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; item.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">drawRect</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">200</span>, <span style="color: #cc66cc;">150</span><span style="color: #66cc66;">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> item;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> update<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:Event<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; imageGrid.<span style="color: #006600;">x</span> += <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageWidth</span> / <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span> - mouseX<span style="color: #66cc66;">&#41;</span> * .<span style="color: #cc66cc;">2</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; container.<span style="color: #006600;">rotationY</span> = <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">stage</span>.<span style="color: #006600;">stageWidth</span> / <span style="color: #cc66cc;">2</span><span style="color: #66cc66;">&#41;</span> - mouseX<span style="color: #66cc66;">&#41;</span> * .<span style="color: #cc66cc;">2</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #66cc66;">&#125;</span><br />
<span style="color: #66cc66;">&#125;</span></div>
</div>
</div>
<p></p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F10%2F23%2Fcooliris-type-thing-in-30-lines%2F&amp;linkname=CoolIris%20type%20thing%20in%2030%20lines" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F10%2F23%2Fcooliris-type-thing-in-30-lines%2F&amp;linkname=CoolIris%20type%20thing%20in%2030%20lines" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F10%2F23%2Fcooliris-type-thing-in-30-lines%2F&amp;linkname=CoolIris%20type%20thing%20in%2030%20lines" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a> <a href="http://www.addtoany.com/add_to/ping?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F10%2F23%2Fcooliris-type-thing-in-30-lines%2F&amp;linkname=CoolIris%20type%20thing%20in%2030%20lines" title="Ping" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/ping.png" width="16" height="16" alt="Ping"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F10%2F23%2Fcooliris-type-thing-in-30-lines%2F&amp;linkname=CoolIris%20type%20thing%20in%2030%20lines" target="_blank">Share/Save</a>]]></content:encoded>
			<wfw:commentRss>http://www.spikything.com/blog/index.php/2009/10/23/cooliris-type-thing-in-30-lines/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Local playback security in FlashDevelop and Flash CS3 / CS4</title>
		<link>http://www.spikything.com/blog/index.php/2009/10/17/local-playback-security-in-flashdevelop-and-flash-cs3-cs4/</link>
		<comments>http://www.spikything.com/blog/index.php/2009/10/17/local-playback-security-in-flashdevelop-and-flash-cs3-cs4/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 14:39:54 +0000</pubDate>
		<dc:creator>Liam</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Local Playback Security]]></category>

		<guid isPermaLink="false">http://www.spikything.com/blog/?p=192</guid>
		<description><![CDATA[<a href="http://www.spikything.com/blog/index.php/2009/10/17/local-playback-security-in-flashdevelop-and-flash-cs3-cs4/"><img align="left" hspace="5" width="150" height="150" src="http://www.spikything.com/blog/wp-content/plugins/thumbnail-for-excerpts/tfe_no_thumb.png" class="alignleft wp-post-image tfe" alt="" title="" /></a>I've seen a few people get into a pickle over this one. When you're developing and testing locally, you need to set the 'Local Playback Security' setting (sometimes referred to as the 'use network services' option) depending on whether you wish to access local external files (e.g. XML files, or images) or some other server [...]]]></description>
			<content:encoded><![CDATA[<p>I've seen a few people get into a pickle over this one. When you're developing and testing locally, you need to set the 'Local Playback Security' setting (sometimes referred to as the 'use network services' option) depending on whether you wish to access local external files (e.g. XML files, or images) or some other server (e.g. your dev backend server). You can't access both from a locally running SWF anymore, since it's a security risk. So here's how to set that option in <a href="/blog/wp-content/uploads/2009/10/localplaybacksecurity.gif" target="_blank">Flash CS3 / CS4</a> or from within <a href="/blog/wp-content/uploads/2009/10/flashdevelop-localplaybacksecurity.gif" target="_blank">FlashDevelop</a>.</p>
<a href="http://www.addtoany.com/add_to/delicious?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F10%2F17%2Flocal-playback-security-in-flashdevelop-and-flash-cs3-cs4%2F&amp;linkname=Local%20playback%20security%20in%20FlashDevelop%20and%20Flash%20CS3%20%2F%20CS4" title="Delicious" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/delicious.png" width="16" height="16" alt="Delicious"/></a> <a href="http://www.addtoany.com/add_to/stumbleupon?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F10%2F17%2Flocal-playback-security-in-flashdevelop-and-flash-cs3-cs4%2F&amp;linkname=Local%20playback%20security%20in%20FlashDevelop%20and%20Flash%20CS3%20%2F%20CS4" title="StumbleUpon" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/stumbleupon.png" width="16" height="16" alt="StumbleUpon"/></a> <a href="http://www.addtoany.com/add_to/wordpress?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F10%2F17%2Flocal-playback-security-in-flashdevelop-and-flash-cs3-cs4%2F&amp;linkname=Local%20playback%20security%20in%20FlashDevelop%20and%20Flash%20CS3%20%2F%20CS4" title="WordPress" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/wordpress.png" width="16" height="16" alt="WordPress"/></a> <a href="http://www.addtoany.com/add_to/ping?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F10%2F17%2Flocal-playback-security-in-flashdevelop-and-flash-cs3-cs4%2F&amp;linkname=Local%20playback%20security%20in%20FlashDevelop%20and%20Flash%20CS3%20%2F%20CS4" title="Ping" rel="nofollow" target="_blank"><img src="http://www.spikything.com/blog/wp-content/plugins/add-to-any/icons/ping.png" width="16" height="16" alt="Ping"/></a> <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.spikything.com%2Fblog%2Findex.php%2F2009%2F10%2F17%2Flocal-playback-security-in-flashdevelop-and-flash-cs3-cs4%2F&amp;linkname=Local%20playback%20security%20in%20FlashDevelop%20and%20Flash%20CS3%20%2F%20CS4" target="_blank">Share/Save</a>]]></content:encoded>
			<wfw:commentRss>http://www.spikything.com/blog/index.php/2009/10/17/local-playback-security-in-flashdevelop-and-flash-cs3-cs4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
