Daemonite: Snazzie Flash Charts via Flash Remoting Archive

Daemonite: Snazzie Flash Charts via Flash Remoting Archive


Tuesday, June 24, 2003
Snazzie Flash Charts via Flash Remoting

Since ColdFusion MX can produce some pretty slick Flash charts with the CFChart tag there's no reason why Flash Remoting apps shouldn't have good looking charting in them as well.

Originally built for my MXDU presentation, I've finally gotten around to releasing the CFMX/FMX/Flash Remoting/Charting demo that I had previously produced.

cfchart.gif Via a form in the Flash application parameters for variables such as data & charting options are passed to a single cfc.

The cfc produces a swf chart as a variable which is written to the hard drive as a swf with CFFile.

The loadMovie() command is used to load the swf into the Flash application.

There are some caching issues with loadMovie() repeatedly calling the same swf, I'll address those in my next post to the blog.

On the CFMX side of thing it's pretty simple to implement. You use the "name" attribute of the CFChart tag to create a variable equal to the output of the tag, this would normally mean that no content would appear on the ColdFusion page.

CFFile is then used to write the variable back to a swf on the hard drive of the server.

Download the required files as a single zip and try it out for yourself.

Posted by at 05:57 PM | Permalink
Trackback: http://blog.daemon.com.au/cgi-bin/dmblog/mt-tb.cgi/137

Comments

but does it do unicode?

Posted by: PaulH on June 24, 2003 09:33 PM

Why not...

Posted by: Andrew Muller / rebel on June 25, 2003 04:22 PM