I have started playing with Flex as a tool to possibly use in the future. I have recieved my Non-Commercial license and as such started building tools for my self.

So my first forray into this vast world of mxml included calling a cfc which was in use in another app, and binding the data that it returned to a DataGrid. This was my FIRST attempt at flex, and it was wonderful. Took maybe 15 minutes, including me searching the docs for the pieces that I needed. I was so extatic. I ran from room to room with my laptop showing anyone who would look (no one cared).

So I thought to myself, what could make this cooler… Oh, A CHART! Yeah, thats what I need a chart. So I went about adding a chart to my file. Refreshed my browser loaded up the data…Datagrid got data…empty chart :(

So I created an array of values and I used those as my dataprovider…worked great! So obviously there was something I was missing right? RIGHT?

Found here in a post on Brandon Purcell’s site is a post about cf/flex gotchas. Guess what the first entry is? Its a note about how all calls to cf for remoting return variable names that are UPPERCASED automatically.

Yep thats right, I spent my spare brain cycles for two days, working over a problem of variable name casing. I feel so silly. But I am also so relieved to finally have my first app taken care of. Well I cant really call it an app, but my first attempt with Flex.

If you are new to Flex and planning on using cf as a back-end, I totally recommend you check out Brandon’s article.