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.
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…
- On the Windows 2003 server, open the Internet Information Services Manager.
- Expand the Local Computer Server.
- Right-click the local computer server and select Properties.
- Select the MIME Types tab.
- Click the New… button and enter the following information:
- Associated Extension box: .FLV
- MIME Type box: flv-application/octet-stream
- Click Ok.
- Restart the World Wide Web Publishing service.
You can view the entire Macromedia TechNote here.
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
I’ve played with it very minimally, but things that I do like so far are the Quick startup & Tabbed browsing (bit behind the curve but…).
You can download it from the Microsoft Beta Preview Site
– John (Still a FF user) 🙂
Michael Moore (no, not the documentary director!) brought this little IE 7
quick fix to my attention.
Open a new document in Notepad or your HTML editor, and copy & paste the following content into it:
theObjects = document.getElementsByTagName(“object”);
for (var i = 0; i < theObjects.length; i++)
theObjects[i].outerHTML = theObjects[i].outerHTML;
Save this file as fixit.js
SWFObject has a nice little API for adding flash vars and upgrading the Flash Player.
Hello World! Okay, well, maybe just my small part of the world.
This blog is going to be my development blog for the things that I work on at RealEyes Media. Currently that includes ActionScript 2 & 3, Flex, Flash, ColdFusion, a little Java when I get to play, maybe some C# here and there. I’m currently the co-manager of the Rocky Mountain Adobe Users Group (www.rmaug.com) and a Certified Adobe Instructor. So what I’d like to provide is some information and code that you can use and learn from.
Shoot me a comment of email me and let me know if there is anything specific that you’d like to see involving the above technologies. Also, if there is anything incorrect with what I post, please let me know…cause I need to learn too.