<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>David Harris&apos;s Technology Blog - Flash</title>
			<link>http://www.harrisfamily.net.nz/devblog/index.cfm</link>
			<description>ColdFusion, Flex and the Universe...</description>
			<language>en-us</language>
			<pubDate>Wed, 08 Sep 2010 06:57:29 -0500</pubDate>
			<lastBuildDate>Thu, 16 Apr 2009 15:10:00 -0500</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>harrisfamily.net.nz@gmail.com</managingEditor>
			<webMaster>harrisfamily.net.nz@gmail.com</webMaster>
			
			<item>
				<title>Simple Example of Randomizing the order of an array in ActionScript</title>
				<link>http://www.harrisfamily.net.nz/devblog/index.cfm/2009/4/16/Simple-Example-of-Randomizing-the-order-of-an-array-in-ActionScript</link>
				<description>
				
				Just got asked this by a work mate and after asking Mr Google and looking at the Array Documentation came up with this (Flex based) example, so thought I would share :-)

&lt;code&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:Application xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot; layout=&quot;vertical&quot;
&gt;
&lt;mx:Script&gt;
&lt;![CDATA[
private function myExample() : void
{
//can be an array of anything you like, but using letters here

var myArray	: Array	= ( &quot;a,b,c,d,e,f,g,h,j,k,l&quot; ).split(&quot;,&quot;);

//sort the array using my function

myArray.sort( myFunction );

debug.text = myArray.toString() + &quot;\n&quot; + debug.text;
}

//This function takes in 2 args, but we never use them...

private function myFunction( a : Object , b : Object ) : int
{
return ( Math.round( Math.random() * 10 ) - 5);// return a random value above, below or on 0
}
]]&gt;
&lt;/mx:Script&gt;

&lt;mx:Button
label=&quot;Make me Random&quot;
click=&quot;myExample();&quot;
/&gt;

&lt;mx:TextArea
id	= &quot;debug&quot;
height=&quot;100%&quot;
/&gt;

&lt;/mx:Application&gt;
&lt;/code&gt; 
				</description>
				
				<category>Action Script</category>				
				
				<category>Flash</category>				
				
				<category>Flex</category>				
				
				<pubDate>Thu, 16 Apr 2009 15:10:00 -0500</pubDate>
				<guid>http://www.harrisfamily.net.nz/devblog/index.cfm/2009/4/16/Simple-Example-of-Randomizing-the-order-of-an-array-in-ActionScript</guid>
				
			</item>
			
			<item>
				<title>What version of Flash player does cfpresentation require?</title>
				<link>http://www.harrisfamily.net.nz/devblog/index.cfm/2007/10/29/What-version-of-Flash-player-does-cfpresentation-require</link>
				<description>
				
				This is a question I had, so, doing what all good developers do, I looked in the documentation.

Didn&apos;t find it there.

The next step a good developer does is ask the holder of knowledge, Mr Google.
He didn&apos;t know either...

Third step, inspect the generated code...

The generated code uses a .JS file called &quot;loadflash.js&quot;, which has the code snippet:
&lt;code&gt;
object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0&quot; width=&quot;&apos;+w+&apos;&quot; height=&quot;&apos;+h+&apos;&quot; id=&quot;SlideContent&quot; align=&quot;&quot; VIEWASTEXT&gt;
&lt;/code&gt;

note the: &quot;version=6,0,65,0&quot;

so the answer to the question:
What version of Flash player does cfpresentation require?

would be: 6+ :-) 
				</description>
				
				<category>Flash</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Mon, 29 Oct 2007 08:45:00 -0500</pubDate>
				<guid>http://www.harrisfamily.net.nz/devblog/index.cfm/2007/10/29/What-version-of-Flash-player-does-cfpresentation-require</guid>
				
			</item>
			
			<item>
				<title>Trace log not working on Flash Player 9,0,28,0</title>
				<link>http://www.harrisfamily.net.nz/devblog/index.cfm/2007/2/7/Trace-log-not-working-on-Flash-Player-90280</link>
				<description>
				
				When I am working with Flash, I use the &quot;trace&quot; function ALLOT...

It&apos;s great for quick debugging and working out what your code is doing.

On XP, to define where the Flash log is writen client side you set up a file called &quot;mm.cfg&quot; in location:
C:\Documents and Settings\[user name]

in this file, one of the settings you define is &quot;TraceOutPutFileName&quot;, which is the location and name of the log file that is created and written to by the Flash Player as your application runs. EG: &quot;C:\MyFlashLog.txt&quot; would be a valid value for this variable

In FireFox, I use &quot;Flash Tracer&quot; to monitor the defined file while I am developing.

For some reason, it stopped working! I was trying all sorts of things, and often when the Flash log stops working it can be the version of FP installed, but I KNOW I had the right version installed. I had version 9,0,28,0 installed.

I asked on FlexCoders, and Matt Horn from Adobe answered...

The problem was that you can&apos;t define where the Flash log is written now, and it is hard coded to write to :
&quot;C:\Documents and Settings\[user name]\Application Data\Macromedia\Flash Player\Logs\flashlog.txt&quot;

So once I pointed FireFox plugin &quot;Flash Tracer&quot; to that file, I started seeing my trace output again!

Thank you Matt for your response!

You can see the thread at: &lt;a href=&quot;http://tech.groups.yahoo.com/group/flexcoders/message/63656&quot; target=&quot;blank&quot;&gt;http://tech.groups.yahoo.com/group/flexcoders/message/63656&lt;/a&gt; 
				</description>
				
				<category>Flash</category>				
				
				<pubDate>Wed, 07 Feb 2007 05:51:00 -0500</pubDate>
				<guid>http://www.harrisfamily.net.nz/devblog/index.cfm/2007/2/7/Trace-log-not-working-on-Flash-Player-90280</guid>
				
			</item>
			
			<item>
				<title>Image Processing and Flash</title>
				<link>http://www.harrisfamily.net.nz/devblog/index.cfm/2007/2/4/Image-Processing-and-Flash</link>
				<description>
				
				I was chatting online to another member of the CFUG the other week, and he mentioned he was thinking of doing an Image Editor in Flash...

I found this AS(3?) library... http://je2050.de/imageprocessing

It has some pretty comprehensive abilities...

Maybe he would find it useful? 
				</description>
				
				<category>CFUG</category>				
				
				<category>Flash</category>				
				
				<pubDate>Sun, 04 Feb 2007 10:19:00 -0500</pubDate>
				<guid>http://www.harrisfamily.net.nz/devblog/index.cfm/2007/2/4/Image-Processing-and-Flash</guid>
				
			</item>
			
			<item>
				<title>Flex2 and 3D - using PaperVision3D</title>
				<link>http://www.harrisfamily.net.nz/devblog/index.cfm/2007/2/4/Flex2-and-3D--using-PaperVision3D</link>
				<description>
				
				As you may or may not know, Flex2 compiles to ActionScript3.

There is a 3D library called &quot;PaperVision3D&quot; - you can find it &lt;a href=&quot;http://www.papervision3d.org/&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;

I am attempting to create a simple photo album, based on the XML provided for SimpleViewer.
This way I can create image galleries that can have multiple views...you know, the whole &quot;MVC&quot; thang...

Anyway... I have started creating a Image Viewer app in Flex2, and am looking at using PaperVision3D in the UI some how...

so at the moment I have a 2 branched approach:

Firstly: get the thing work just using standard Flex2 components and code

Secondly: Make it look really kwel using PaperVision.

I am intending sharing the code...when I have some to share!

(Paper Vision is Currently @ RC1 stage...) 
				</description>
				
				<category>Flash</category>				
				
				<category>Flex</category>				
				
				<pubDate>Sun, 04 Feb 2007 10:05:00 -0500</pubDate>
				<guid>http://www.harrisfamily.net.nz/devblog/index.cfm/2007/2/4/Flex2-and-3D--using-PaperVision3D</guid>
				
			</item>
			
			<item>
				<title>Flash Turned 10</title>
				<link>http://www.harrisfamily.net.nz/devblog/index.cfm/2006/9/29/Flash-Turned-10</link>
				<description>
				
				The guys @ Nectarine have put together this animation to celebrate 10 years of Flash.

I *LIKE* Flash and am trying to make time to learn it

Check it out at &lt;a href=&quot;http://flash10.nectarine.com.au/&quot; target=&quot;_blank&quot;&gt;http://flash10.nectarine.com.au/&lt;/a&gt;

I am sure these guys are paid to have &quot;tooooooo much spare time&quot; to come up with things like this! 
				</description>
				
				<category>Flash</category>				
				
				<pubDate>Fri, 29 Sep 2006 13:18:00 -0500</pubDate>
				<guid>http://www.harrisfamily.net.nz/devblog/index.cfm/2006/9/29/Flash-Turned-10</guid>
				
			</item>
			</channel></rss>