<?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>agitated Observer &#187; tip</title>
	<atom:link href="http://agitatedobserver.com/tags/tip/feed/" rel="self" type="application/rss+xml" />
	<link>http://agitatedobserver.com</link>
	<description>Observations from the agitated one.</description>
	<lastBuildDate>Sun, 08 Nov 2009 13:54:18 +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>Simple way to randomise Arrays in AS3</title>
		<link>http://agitatedobserver.com/simple-way-to-randomise-arrays-in-as3/</link>
		<comments>http://agitatedobserver.com/simple-way-to-randomise-arrays-in-as3/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 08:41:07 +0000</pubDate>
		<dc:creator>AGI</dc:creator>
				<category><![CDATA[Flash / Actionscript]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[random]]></category>
		<category><![CDATA[tip]]></category>

		<guid isPermaLink="false">http://agitatedobserver.com/?p=344</guid>
		<description><![CDATA[Found this over at daveoncode and thought i would like to share it:
12345678910private function _getRandom&#40;arr:Array&#41;:void

&#160; &#160; var arr2:Array = new Array&#40;&#41;;

&#160; &#160; while &#40;arr.length &#62; 0&#41; &#123;
&#160; &#160; &#160; &#160; arr2.push&#40;arr.splice&#40;Math.round&#40;Math.random&#40;&#41; * &#40;arr.length - 1&#41;&#41;, 1&#41;&#91;0&#93;&#41;;
&#160; &#160; &#125;

&#160; &#160; return arr2;
&#125;
Related Posts:AS3 Currency FormatterAS3: Random Colour between 2 colour valuesSnippet: Easy globalToLocal in AS3INSTABUDGET09 launchedSimple AS3 [...]]]></description>
			<content:encoded><![CDATA[<p>Found this over at <a href="http://www.daveoncode.com/2009/01/08/implementing-arrayshuffle-in-actionscript/" target="_blank">daveoncode</a> and thought i would like to share it:</p>
<div class="codecolorer-container actionscript3 default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="actionscript3 codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> _getRandom<span style="color: #000000;">&#40;</span>arr<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=array%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:array.html"><span style="color: #004993;">Array</span></a><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span><br />
<br />
&nbsp; &nbsp; <span style="color: #6699cc; font-weight: bold;">var</span> arr2<span style="color: #000066; font-weight: bold;">:</span><a href="http://www.google.com/search?q=array%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:array.html"><span style="color: #004993;">Array</span></a> = <span style="color: #0033ff; font-weight: bold;">new</span> <a href="http://www.google.com/search?q=array%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:array.html"><span style="color: #004993;">Array</span></a><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">while</span> <span style="color: #000000;">&#40;</span>arr<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span> <span style="color: #000066; font-weight: bold;">&gt;</span> 0<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; arr2<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">push</span><span style="color: #000000;">&#40;</span>arr<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">splice</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">round</span><span style="color: #000000;">&#40;</span><a href="http://www.google.com/search?q=math%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:math.html"><span style="color: #004993;">Math</span></a><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">random</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000066; font-weight: bold;">*</span> <span style="color: #000000;">&#40;</span>arr<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">length</span> <span style="color: #000066; font-weight: bold;">-</span> 1<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">,</span> 1<span style="color: #000000;">&#41;</span><span style="color: #000000;">&#91;</span>0<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span><br />
&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #0033ff; font-weight: bold;">return</span> arr2<span style="color: #000066; font-weight: bold;">;</span><br />
<span style="color: #000000;">&#125;</span></div></td></tr></tbody></table></div>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://agitatedobserver.com/as3-currency-formatter/" rel="bookmark">AS3 Currency Formatter</a></li><li><a href="http://agitatedobserver.com/as3-random-colour-between-2-colour-values/" rel="bookmark">AS3: Random Colour between 2 colour values</a></li><li><a href="http://agitatedobserver.com/snippet-easy-globaltolocal-in-as3/" rel="bookmark">Snippet: Easy globalToLocal in AS3</a></li><li><a href="http://agitatedobserver.com/instabudget09-launched/" rel="bookmark">INSTABUDGET09 launched</a></li><li><a href="http://agitatedobserver.com/simple-as3-dynamic-fonts-class/" rel="bookmark">Simple AS3 dynamic fonts class</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://agitatedobserver.com/simple-way-to-randomise-arrays-in-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Say goodbye to spaceball.gif</title>
		<link>http://agitatedobserver.com/bypassing-flickr-spaceballgif/</link>
		<comments>http://agitatedobserver.com/bypassing-flickr-spaceballgif/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 05:33:11 +0000</pubDate>
		<dc:creator>AGI</dc:creator>
				<category><![CDATA[Randomness]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[tip]]></category>
		<category><![CDATA[usefull tool]]></category>

		<guid isPermaLink="false">http://agitatedobserver.com/?p=300</guid>
		<description><![CDATA[http://addons.hback.net/
Here&#8217;s a handy add-on for FireFox that bypasses the spaceball.gif so you can easily link to or download your favourite images. I&#8217;m not suggesting that you rip off anyone on the site, but it&#8217;s great for when you need to easily embed a photo from flickr and link back to the site.
Related Posts:Infotoons by lunchbreathSubmission [...]]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignleft" style="width: 250px"><a href="http://www.flickr.com/photos/eclecticlibrarian/394850581/"><img title="spaceball city" src="http://farm1.static.flickr.com/169/394850581_78fbea0b89_m.jpg" alt="taken by eclecticlibrarian" width="240" height="180" /></a><p class="wp-caption-text">taken by eclecticlibrarian</p></div>
<p><a title="http://addons.hback.net/" href="http://addons.hback.net/" target="_blank">http://addons.hback.net/</a></p>
<p>Here&#8217;s a handy add-on for FireFox that bypasses the spaceball.gif so you can easily link to or download your favourite images. I&#8217;m not suggesting that you rip off anyone on the site, but it&#8217;s great for when you need to easily embed a photo from flickr and link back to the site.</p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://agitatedobserver.com/infotoons-by-lunchbreath/" rel="bookmark">Infotoons by lunchbreath</a></li><li><a href="http://agitatedobserver.com/submission-for-illustration-friday-rambunctious/" rel="bookmark">Submission for IF: rambunctious</a></li><li><a href="http://agitatedobserver.com/who-doesnt-like-a-boner/" rel="bookmark">Who doesnt like a boner</a></li><li><a href="http://agitatedobserver.com/the-tiny-art-director/" rel="bookmark">The Tiny Art Director</a></li><li><a href="http://agitatedobserver.com/generative-art-from-erik-natzke/" rel="bookmark">Generative art from Erik Natzke</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://agitatedobserver.com/bypassing-flickr-spaceballgif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
