Flex Charting

I’ve been playing with the Flex 2 Charting components quite a bit latley.

The charting components include Bar, Column, Line, Area, Pie, Plot, HLOC (High/Low/Open/Close) & Candlesitck charts. That is quite a set of charts that allow you to visualize your data right out of the box.

Some of the cool features:

  • You can link up data to your charts and change the data at runtime based on user input, live data feeds etc.
  • Its pretty easty to create drag and drop charts with multiple data series for your chart.
  • Styling your chart is a no-braininer with CSS and inline in the MXML .
  • You can also extend the charts for your own custom charts.

Setting up the data is fairly straight forward using a HTTPService, RemoteObject or WebService tags with a Model tag.

I was working on a sample for label rotation and it turned out to be just a good general sample. So, I’ve posted it here.

FYI: In the current BETA release there is a little bug with label rotation. You have to embed a font to rotate the labels and when you do that, the ends of the label are cliped off. Adobe knows about the bug and hopefully it will be fixed.

This sample uses an to get an external XML file. Then I break the data into different models for the different charts. I’ve set up the bar chart to accept a click to update the selected ‘company’ and update the charts on the bottom (the ComboBox will do the same thing).

Check out the app here (you can right-click to view the source).
View the source here.

Flash Video won’t work in IIS 6.0

I learned something today about Windows Server 2003 and IIS 6. Flash Video Files won’t stream at all. Hrm…fun. What is really nice is the Flash piece will play just fine, the video just won’t show up.

With IIS 6.0, Microsoft changed the way streaming media is handled. Previous versions of IIS did not require any modification to stream Flash Video. Microsoft IIS 6.0, the default web server that ships with Windows 2003, requires a MIME type to recognize that FLV files are streamed media.

So you have to add the MIME type in IIS…

  1. On the Windows 2003 server, open the Internet Information Services Manager.
  2. Expand the Local Computer Server.
  3. Right-click the local computer server and select Properties.
  4. Select the MIME Types tab.
  5. Click the New… button and enter the following information:
    • Associated Extension box: .FLV
    • MIME Type box: flv-application/octet-stream
  6. Click Ok.
  7. Restart the World Wide Web Publishing service.

You can view the entire Macromedia TechNote here.

10 Minute RSSReader & Flex For Free

Macromedia announced the Flex Builder 2 Public BETA so I thought I’d play with it and see what I thought. I’m loving some of the new layout features they have added. It makes the initial layout so easy!Check out the list of features that have been added on the Adobe Labs site.
Free Flex SDK Announcement!

As I was playing, I put this blog reader together in about 10 minutes.


Very simple, but very cool. It will read in an RSS 2.0 feed URL and let you cycle through the articles. You can choose from 3 pre-defined feeds ro enter your own. Oh yeah, this appwill only work locally bacuse it is reading in images and the flash crossdomain policy will get in the way.

View the source here.

Download the source here.

Of course you’ll need the updated 8.5 player to view it.

The Flex Builder 2 Public BETA is available on the labs site: labs.macromedia.com