Flex SDK 3.4 Extracting DataVisualization Source

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 do this different ways as well.)

Then in Flex Builder, right click on a project, choose Properties, Flex Compiler, Configure Flex SDKs. And add your new SDK.

So, pretty sure there are plenty of posts on how to do the above. But, now you need to extract the DataViz source. This post explains that. And here’s what you can copy and paste into Terminal to get it to work if you’re on a mac.

java -jar “/Applications/Adobe Flex Builder 3 Plug-in/sdks/3.4.0/lib/DMV-source.jar” “/Library/Application Support/Adobe/Flex” “/Applications/Adobe Flex Builder 3 Plug-in/sdks/3.4.0″

The blog changes the straight quotes to curly quotes, so, you’ll probably have to change that.

Speaking at BFPUG tomorrow March 25

This just came up. I’ll be giving my mashup talk again (twice in one week – really getting some good value), this time to BFPUG.

Info here…

Wednesday, March 25
7:15PM
The New England Institute of Art
Center Campus (Brookline Village) http://www.artinstitutes.edu/boston/AboutUs/MapsDirections.aspx
Room 1001-1002

Source Files from Mashup Talk

Here’s a link to a pdf of the mashup talk I just gave to the Harvard Flash User Group.

A special thank you to Oscar Cortes. I shamelessly stole content from the mashup talk he gave to both the Design Patterns group and the excellent Flex Camp Boston.

XML Attributes to Object Properties

Now I can copy and paste this code instead of having to remember a.name().toString();

Anyway – this takes
var x : XML =
<node name=’Doug’ hadAGoodTimeSleddingOnSunday = ‘true’/>
to
o.name = “Doug”;
o.hadAGoodTimeSleddingOnSunday = “true” //yup you’d want to type that as a Boolean.

var o : Object = {};
var atts : XMLList = x.attributes();
for each (var a : XML in atts) {
var propName : String = a.name().toString();
o[propName] = a.toXMLString();
}

103 Delegates Today

Getting near the end – Oregon and Kentucky hold their primaries today. Looks like Clinton will win Kentucky (51 delegates). Obama will win Oregon (52 delegates). And Clinton will continue to smoke the high grade and think she can somehow win. I updated the election center and added a summary tab. The tab contains two charts: a pie chart showing current totals; and a bar chart showing how many delegates each candidate needs to win. Most telling is Clinton needs to win 72% of the remaining delegates to win.

Election Center Update!

Updated the counts and added some more charts. Not perfect, but, better. Here it is. Also, lots of bugs when you resize!

Flex Data Visualization component source is available

I had been working w/ the Flex beta (where you couldn’t get at the source) for so long, I just gave up. But, you can get at the charting component source if you buy Flex Builder Pro. Not open source, but, all I want to do is override methods. (via Pearls of Flex)

Check out this link if you need to extract the source. For 3.0 it seemed to auto-extract. But, for Flex 3.1, I needed to extract.

Also, check this post for the command to type into terminal.

Google Data Viz API

Google has released a data visualization API. Some of it is Flash – specifically the code they got when they purchased Gap Minder.

Update: Infosthetics has a good post about this as well.

Mississippi Primary

I’ve finally found a way to blog regularly – update primary data. Mississippi data added to the Election Dashboard.

Election Center Update

It’s worth doing political charts just to have titles like “Election Center Update”. Obama won Wyoming and Mississippi is tomorrow. Anyway, I just added a delegate count comparison page, here.

Next Page →