Getting into Flex - Case Sensivity

I'm working on creating my first "real" Flex application (e.g. not one from a tutorial or step-by-step instructions). The application is getting its data using the mx:RemoteObject tag by talking to a ColdFusion CFC function that is returning a query. As I'm iterating through the development, I hit a wall where a change I made caused the data to stop being loaded in my flex grid. My Flex trace statements showed that my init() function was getting called, but not my result handler. Flex was not showing any errors--it just wasn't invoking the handler. After hitting my head on the wall for a while, I discovered that the "name" attribute in my mx:method tag used a different case than I was using when calling the function. So my call looked like this:

roOffstat.getUsers();
but my mx:method looked like this:
<mx:method name="GetUsers" result="handleGetUsers(event)" />

Changing "GetUsers" to "getUsers" fixed my issue. So lesson number one to self is that Flex appears to be case-sensitive as some level.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.8.