Differences

This shows you the differences between the selected revision and the current version of the page.

tutorial 2008/07/28 12:58 tutorial 2009/01/11 16:19 current
Line 337: Line 337:
<code actionscript> <code actionscript>
var ds:DataSource = new DataSource( var ds:DataSource = new DataSource(
-    "http://www.cs.berkeley.edu/~jheer/data/test.tab.txt", "tab"+    "http://flare.prefuse.org/data/test.tab.txt", "tab"
); );
var loader:URLLoader =  ds.load(); var loader:URLLoader =  ds.load();
Line 427: Line 427:
        {         {
            var ds:DataSource = new DataSource(             var ds:DataSource = new DataSource(
-                "http://www.cs.berkeley.edu/~jheer/data/homicides.tab.txt", "tab");+                "http://flare.prefuse.org/data/homicides.tab.txt", "tab");
            var loader:URLLoader = ds.load();             var loader:URLLoader = ds.load();
            loader.addEventListener(Event.COMPLETE, function(evt:Event):void {             loader.addEventListener(Event.COMPLETE, function(evt:Event):void {
Line 523: Line 523:
    import flare.animate.Transitioner;     import flare.animate.Transitioner;
    import flare.display.TextSprite;     import flare.display.TextSprite;
-    import flare.vis.palette.ColorPalette;+    import flare.util.palette.ColorPalette;
</code> </code>
Now you should be able to compile and run the application. Clicking the "Color by Gender" label should animate the change in color encoding. Now you should be able to compile and run the application. Clicking the "Color by Gender" label should animate the change in color encoding.
-===== Going Forward =====+===== Next Steps =====
The above examples show the basics of Flash and the Flare library, but there are many more features that have yet to be covered. Going forward, we recommend (a) inspecting both the Flash and Flare API documentation to get a sense of all the available classes, and (b) digging through the Flare demos to see how the same principles shown here can be used to construct a number of other visualizations. Or, better yet, dig through the Flare source code to learn what's going on under the hood. The above examples show the basics of Flash and the Flare library, but there are many more features that have yet to be covered. Going forward, we recommend (a) inspecting both the Flash and Flare API documentation to get a sense of all the available classes, and (b) digging through the Flare demos to see how the same principles shown here can be used to construct a number of other visualizations. Or, better yet, dig through the Flare source code to learn what's going on under the hood.