<?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>Forest and the Trees &#187; Code</title>
	<atom:link href="http://www.forestandthetrees.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.forestandthetrees.com</link>
	<description>Data Visualization with Flex and Flash</description>
	<lastBuildDate>Fri, 11 Jun 2010 15:35:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Flex SDK 3.4 Extracting DataVisualization Source</title>
		<link>http://www.forestandthetrees.com/2009/09/11/flex-sdk-3-4-extracting-datavisualization-source/</link>
		<comments>http://www.forestandthetrees.com/2009/09/11/flex-sdk-3-4-extracting-datavisualization-source/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 16:21:26 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Data]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Charting]]></category>
		<category><![CDATA[Visualization]]></category>
		<category><![CDATA[charting]]></category>

		<guid isPermaLink="false">http://www.forestandthetrees.com/?p=273</guid>
		<description><![CDATA[Adobe released a new sdk for Flex which fixes a cross-scripting security threat. So, you download the sdk, unzip it, create a new directory for 3.4.0 in your flex sdks directory. Also extract the data viz zip and put its files in the appropriate directories in the 3.4.0 directory that you just added. (You could [...]]]></description>
			<content:encoded><![CDATA[<p>Adobe released a <a href="http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk">new sdk for Flex</a> which fixes a <a href="http://www.adobe.com/support/security/bulletins/apsb09-13.html">cross-scripting security threat</a>. So, you download the sdk, unzip it, create a new directory for 3.4.0 in your flex sdks directory. Also extract the data viz zip and put its files in the appropriate directories in the 3.4.0 directory that you just added. (You could do this different ways as well.)</p>
<p>Then in Flex Builder, right click on a project, choose Properties, Flex Compiler, Configure Flex SDKs. And add your new SDK.</p>
<p>So, pretty sure there are plenty of posts on how to do the above. But, now you need to extract the DataViz source. <a href="http://blogs.adobe.com/flexdoc/2008/04/extracting_data_visualization.html">This post explains that</a>. And here&#8217;s what you can copy and paste into Terminal to get it to work if you&#8217;re on a mac.</p>
<p>java -jar &#8220;/Applications/Adobe Flex Builder 3 Plug-in/sdks/3.4.0/lib/DMV-source.jar&#8221; &#8220;/Library/Application Support/Adobe/Flex&#8221; &#8220;/Applications/Adobe Flex Builder 3 Plug-in/sdks/3.4.0&#8243;</p>
<p>The blog changes the straight quotes to curly quotes, so, you&#8217;ll probably have to change that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forestandthetrees.com/2009/09/11/flex-sdk-3-4-extracting-datavisualization-source/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rotating Text without Embedding Fonts</title>
		<link>http://www.forestandthetrees.com/2009/06/29/rotating-text-without-embedding-fonts/</link>
		<comments>http://www.forestandthetrees.com/2009/06/29/rotating-text-without-embedding-fonts/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 00:47:14 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Charting]]></category>
		<category><![CDATA[charting]]></category>

		<guid isPermaLink="false">http://www.forestandthetrees.com/?p=243</guid>
		<description><![CDATA[I needed this for creating an axis label for a chart. The Flex Charting label was flashing. Basically it creates a bitmap of the text and then rotates that. Obviously, you can&#8217;t select text, but, might be useful for someone. Here it is. Click the &#8220;add a text field&#8221; button. Then change text in the [...]]]></description>
			<content:encoded><![CDATA[<p>I needed this for creating an axis label for a chart. The Flex Charting label was flashing. Basically it creates a bitmap of the text and then rotates that. Obviously, you can&#8217;t select text, but, might be useful for someone. <a href="http://www.forestandthetrees.com/flexExamples/rotatableTextNoEmbed/RotatingTextNoEmbed.html">Here it is</a>. Click the &#8220;add a text field&#8221; button. Then change text in the text input component. Rotate using the slider. Right click, view source. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.forestandthetrees.com/2009/06/29/rotating-text-without-embedding-fonts/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Five Minute Design Patterns Presentation Files</title>
		<link>http://www.forestandthetrees.com/2009/06/03/five-minute-design-patterns-presentation-files/</link>
		<comments>http://www.forestandthetrees.com/2009/06/03/five-minute-design-patterns-presentation-files/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 18:33:41 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design Patterns]]></category>
		<category><![CDATA[Speaking]]></category>

		<guid isPermaLink="false">http://www.forestandthetrees.com/?p=226</guid>
		<description><![CDATA[Amazingly, made it through ten patterns in an hour &#8211; even w/ my long winded intro. Presentation here: keynote, pdf, ppt. Code is here. Right-click, view source. There is a different application file for each of the patterns. So, only the first example (the non-patterns example) is viewable on-line. Thanks to everyone who attended the [...]]]></description>
			<content:encoded><![CDATA[<p>Amazingly, made it through ten patterns in an hour &#8211; even w/ my long winded intro.</p>
<p>Presentation here: <a href="http://www.forestandthetrees.com/presentations/fiveMinuteDesignPatterns/preso/fiveMinuteDesignPatterns_27may2009.key.zip">keynote</a>, <a href="http://www.forestandthetrees.com/presentations/fiveMinuteDesignPatterns/preso/fiveMinuteDesignPatterns_27may2009.pdf">pdf</a>, <a href="http://www.forestandthetrees.com/presentations/fiveMinuteDesignPatterns/preso/fiveMinuteDesignPatterns_27may2009.ppt">ppt</a>.</p>
<p><a href="http://www.forestandthetrees.com/presentations/fiveMinuteDesignPatterns/bin-release/a__noPatterns.html">Code is here</a>. Right-click, view source. There is a different application file for each of the patterns. So, only the first example (the non-patterns example) is viewable on-line. </p>
<p>Thanks to everyone who attended the talk. It was a great turnout and I had a blast.</p>
<p>Kudos to <a href="http://blog.ff9900.org/">Chris</a> and <a href="http://www.infrared5.com/#/who%27s%20who/rebecca%20allen/">Rebecca</a> for putting on such a great conference. <a href="http://flashontap.com/">Flash on Tap</a> definitely rocked. Can&#8217;t wait for next year.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forestandthetrees.com/2009/06/03/five-minute-design-patterns-presentation-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tap Into America!</title>
		<link>http://www.forestandthetrees.com/2009/05/07/tap-into-america/</link>
		<comments>http://www.forestandthetrees.com/2009/05/07/tap-into-america/#comments</comments>
		<pubDate>Thu, 07 May 2009 14:30:05 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design Patterns]]></category>
		<category><![CDATA[Speaking]]></category>

		<guid isPermaLink="false">http://www.forestandthetrees.com/?p=205</guid>
		<description><![CDATA[No, not the tour to support Smell the Glove. But, Flash on Tap! Which takes a sophisticated view of sex and puts in on a farm. Excuse me, I mean, takes a sophisticated view of Flash puts it on a beer festival. Beer! Flash! Talking! Beer (including Haverill, Lagunitas, Smuttynose, and Stone &#8211; some of [...]]]></description>
			<content:encoded><![CDATA[<p>No, not the tour to support <a href="http://www.spinaltapfan.com/atozed/TAP00494.HTM">Smell the Glove</a>. But, <a href="http://flashontap.com/">Flash on Tap!</a> Which takes <a href="http://www.spinaltapfan.com/atozed/TAP00467.HTM">a sophisticated view of sex and puts in on a farm</a>. Excuse me, I mean, takes a sophisticated view of Flash puts it on a beer festival. </p>
<p><a href="http://flashontap.com/#/beer/">Beer</a>! Flash! Talking! Beer (including Haverill, Lagunitas, Smuttynose, and Stone &#8211; some of my favorites)! May 28 &#8211; 30th at <a href="http://flashontap.com/#/location/">the castle in Boston</a>. It will be fun. You should go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forestandthetrees.com/2009/05/07/tap-into-america/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XML Attributes to Object Properties</title>
		<link>http://www.forestandthetrees.com/2009/01/13/xml-attributes-to-object-properties/</link>
		<comments>http://www.forestandthetrees.com/2009/01/13/xml-attributes-to-object-properties/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 23:41:26 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Data]]></category>
		<category><![CDATA[XML]]></category>
		<category><![CDATA[attributes]]></category>
		<category><![CDATA[e4x]]></category>

		<guid isPermaLink="false">http://www.forestandthetrees.com/?p=179</guid>
		<description><![CDATA[Now I can copy and paste this code instead of having to remember a.name().toString(); Anyway &#8211; this takes var x : XML = &#60;node name=&#8217;Doug&#8217; hadAGoodTimeSleddingOnSunday = &#8216;true&#8217;/&#62; to o.name = &#8220;Doug&#8221;; o.hadAGoodTimeSleddingOnSunday = &#8220;true&#8221; //yup you&#8217;d want to type that as a Boolean. var o : Object = {}; var atts : XMLList = [...]]]></description>
			<content:encoded><![CDATA[<p>Now I can copy and paste this code instead of having to remember a.name().toString();</p>
<p>Anyway &#8211; this takes<br />
var x : XML =<br />
&lt;node name=&#8217;Doug&#8217; hadAGoodTimeSleddingOnSunday = &#8216;true&#8217;/&gt;<br />
to<br />
o.name = &#8220;Doug&#8221;;<br />
o.hadAGoodTimeSleddingOnSunday = &#8220;true&#8221; //yup you&#8217;d want to type that as a Boolean.</p>
<p>var o : Object = {};<br />
var atts : XMLList = x.attributes();<br />
for each (var a : XML in atts) {<br />
    var propName : String = a.name().toString();<br />
    o[propName] = a.toXMLString();<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forestandthetrees.com/2009/01/13/xml-attributes-to-object-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tour de Flex, Kap Lab Data Viz Components</title>
		<link>http://www.forestandthetrees.com/2008/12/19/tour-de-flex-kap-lab-data-viz-components/</link>
		<comments>http://www.forestandthetrees.com/2008/12/19/tour-de-flex-kap-lab-data-viz-components/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 10:55:15 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Visualization]]></category>
		<category><![CDATA[charting]]></category>

		<guid isPermaLink="false">http://www.forestandthetrees.com/?p=176</guid>
		<description><![CDATA[Tour de Flex is a great Flex reference tool. It might be the first Air app I actually use. And, it features the Kap Lab components. I haven&#8217;t used them yet, but, they look like pretty nice data viz tools &#8211; and they are freeware. Currently they include the following components: Tree Map, Radar Chart, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://flex.org/tour">Tour de Flex</a> is a great Flex reference tool. It might be the first <a href="http://www.adobe.com/products/air/">Air</a> app I actually use.</p>
<p>And, it features the <a href="http://lab.kapit.fr/display/kaplabhome/Home">Kap Lab</a> components. I haven&#8217;t used them yet, but, they look like pretty nice data viz tools &#8211; and they are freeware. Currently they include the following components: Tree Map, Radar Chart, Visualilizer (node mapping), and Diagrammer (looks like node mapping where the end user can do the mapping).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forestandthetrees.com/2008/12/19/tour-de-flex-kap-lab-data-viz-components/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ADG Color Rows by Depth</title>
		<link>http://www.forestandthetrees.com/2008/10/21/adg-color-rows-by-depth/</link>
		<comments>http://www.forestandthetrees.com/2008/10/21/adg-color-rows-by-depth/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 02:53:19 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Charting]]></category>
		<category><![CDATA[Visualization]]></category>
		<category><![CDATA[Add new tag]]></category>

		<guid isPermaLink="false">http://www.forestandthetrees.com/?p=170</guid>
		<description><![CDATA[Really need to start blogging again. Here&#8217;s an example using HierarchicalCollectionViewCursor to set the row color of an Advanced DataGrid by depth. Right-click to view source.]]></description>
			<content:encoded><![CDATA[<p>Really need to start blogging again. <a href="http://www.forestandthetrees.com/flexExamples/colorRowsByDepth/ADGRowColorsByDepth.html">Here&#8217;s an example</a> using <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/HierarchicalCollectionViewCursor.html">HierarchicalCollectionViewCursor</a> to set the row color of an <a href="http://livedocs.adobe.com/flex/3/langref/mx/controls/AdvancedDataGrid.html">Advanced DataGrid</a> by depth. Right-click to view source.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forestandthetrees.com/2008/10/21/adg-color-rows-by-depth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Observer Pattern Files</title>
		<link>http://www.forestandthetrees.com/2008/10/09/observer-pattern-files/</link>
		<comments>http://www.forestandthetrees.com/2008/10/09/observer-pattern-files/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 13:43:52 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Design Patterns]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Speaking]]></category>

		<guid isPermaLink="false">http://www.forestandthetrees.com/?p=169</guid>
		<description><![CDATA[Here it is. Right-click, view source. I spent less time on this presentation than I ever have. And it was the first presentation written entirely at Characters. Enjoy. The image above was taken from ActionScript 3.0 Design Patterns. The code was also kind of taken from there. Well, the interfaces were anyway.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.forestandthetrees.com/designPatterns/observerPattern/ObserverPattern.html">Here it is. Right-click, view source.</a> I spent less time on this presentation than I ever have. And it was the first presentation written entirely at Characters. Enjoy.<br />
<img src="http://www.forestandthetrees.com/designPatterns/observerPattern/observer.gif" alt="Observer UML!!" /><br />
The image above was taken from <a href="http://www.amazon.com/ActionScript-3-0-Design-Patterns-Programming/dp/0596528469/ref=pd_bbs_sr_1?ie=UTF8&#038;s=books&#038;qid=1223561213&#038;sr=8-1">ActionScript 3.0 Design Patterns</a>. The code was also kind of taken from there. Well, the interfaces were anyway.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forestandthetrees.com/2008/10/09/observer-pattern-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Formatting the FlexLib Window Shade</title>
		<link>http://www.forestandthetrees.com/2008/07/01/formatting-the-flexlib-window-shade/</link>
		<comments>http://www.forestandthetrees.com/2008/07/01/formatting-the-flexlib-window-shade/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 00:10:54 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.forestandthetrees.com/?p=164</guid>
		<description><![CDATA[Our designer wanted to know how to skin the FlexLib Window Shade, so I put this together. Might be useful to someone. Shows how to set the button property on the Window Shade &#8211; but, more generally (and probably more importantly) shows multiple ways to set item renderers. Right click to view source.]]></description>
			<content:encoded><![CDATA[<p>Our designer wanted to know how to skin the <a href="http://code.google.com/p/flexlib/">FlexLib</a> <a href="http://flexlib.googlecode.com/svn/trunk/docs/flexlib/containers/WindowShade.html">Window Shade</a>, so <a href="http://www.forestandthetrees.com/flexExamples/skinningWindowShade/WindowShadeSkinning.html">I put this together</a>. Might be useful to someone. Shows how to set the button property on the Window Shade &#8211; but, more generally (and probably more importantly) shows multiple ways to set item renderers. Right click to view source.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forestandthetrees.com/2008/07/01/formatting-the-flexlib-window-shade/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Data Grid and ADG Footers</title>
		<link>http://www.forestandthetrees.com/2008/06/16/data-grid-and-adg-footers/</link>
		<comments>http://www.forestandthetrees.com/2008/06/16/data-grid-and-adg-footers/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 22:54:43 +0000</pubDate>
		<dc:creator>Doug</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Flex Charting]]></category>
		<category><![CDATA[Visualization]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.forestandthetrees.com/?p=162</guid>
		<description><![CDATA[[UPDATE 26 Jun 2008] &#8211; view source is now fully functional I made some enhancements to the DataGrid footer posted in Alex&#8217;s Flex Closet. This supports resizing columns, locked columns, and horizontal scrolling. It is also implemented in both the Data Grid and the Advanced Data Grid. Licensed under MIT (which I believe is the [...]]]></description>
			<content:encoded><![CDATA[<p>[UPDATE 26 Jun 2008] &#8211; view source is now fully functional</p>
<p>I made some enhancements to the DataGrid footer posted in <a href="http://blogs.adobe.com/aharui/2008/03/flex_3_datagrid_footers.html">Alex&#8217;s Flex Closet</a>. This supports resizing columns, locked columns, and horizontal scrolling. It is also implemented in both the Data Grid and the Advanced Data Grid. Licensed under MIT (which I believe is the do whatever the hell you want license &#8211; commercial, non-commercial, sell it unedited to someone (although that would be morally wrong)).</p>
<p>I haven&#8217;t tested these very much. If you find a bug, please comment.</p>
<p><a href="http://www.forestandthetrees.com/openSource/dgFooters/adgFooter.html">Demo here</a>. The functions that calculate the content of the footers are in the main mxml. Right click to view source.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.forestandthetrees.com/2008/06/16/data-grid-and-adg-footers/feed/</wfw:commentRss>
		<slash:comments>41</slash:comments>
		</item>
	</channel>
</rss>
