25 February 2008
The dashboard, built by WASI, is a demo application which displays data using draggable drill down charts, forms, DataGrids, and links in a pod layout. You can modify layouts by dragging and dropping pods to a different location and minimizing, maximizing, and restoring pod windows. Layout changes are saved using a LocalSharedObject. Layout data is loaded from /data/pods.xml with values in pod.xml indicating which data files to load for a particular pod. You will need the datavisualization.swc to run this application.
To download and view the full source, right-click the Flex application and select View Source from the context menu.
Download the source code and import the ZIP file as a new Flex Builder project.
To deploy the project on a Web server, select Project > Export Release Build from the main menu. By default, Flex Builder will export the project files to a /bin-release/ directory inside of your Flex project folder. If you want to include a source code in your published application, check the Enable view source check box and Flex Builder will generate separate HTML versions files for each of the files in your Flex project. If you only want to include certain source files, click the Choose Source Files button and you can toggle individual files/directories in the Publish Application Source dialog box. Once finished, click the Finish button in the Export Release Build dialog box to finish generating the release version of the project. Finally, upload the files from the /bin-release/ folder to your Web server.
The layout of the different pods in the dashboard is implemented using a custom layout manager (which in this case does not extend the Flex LayoutManager). Effects are used as pods change their position and are resized. The contents of the pod use standard controls like Charts and List controls.
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.
Note: You may use the sample code in your products, commercial or not.