ColdFusion is case-insensitive, and Flex MXML and ActionScript is very case-sensitive. For consistency's sake, when ColdFusion variables are sent from ColdFusion to the Flash Player via Flash Remoting, names are converted to uppercase (that's the default behavior, and it can be changed if needed). So, a structure member named FirstName will be named FIRSTNAME when it arrives on the Flash Player (and referring to it as FirstName in MXML or ActionScript won't work). But, you actually can force case to be maintained in structures, depending on how structure members are defined. Look at these two examples. The first won't preserve case: In this example, if the structure were returned to the Flash Player, the members would be named FIRSTNAME and LASTNAME. Here's another example, one that will indeed preserve case: This example accomplishes the exact same result as the previous example, in that it creates a structure and defines two members. But in this example, structure member names will be preserved, and they would indeed be named FirstName and LastName when they arrive in the Flash Player.

Subscribe to Planet Flash

Search

Tags

3d 3d Flash Actionscript actionscript 3 ActionScript 3.0 Adobe Adobe Air Adobe AIR (Apollo) Adobe Flash Adobe Flex AdobeMAX08 AIR AIR Adobe Integrated Runtime Announcements apollo as3 Asides awards BEA Beautiful Web Business Cairngorm ColdFusion Community Components Conferences design dev Development Events Examples Featured Flash Flash CS3 Flash experiments flash player Flex Flex 3 Flex Example FMS Fun Gallery General GeoWeb Google Jobs linux Marketing MAX MAX 2007 Misc News news & events Open Source Other Papervision3D Personal photos Photoshop Process Processing RIA Singularity Site News Stuff techmology Technology Thinking Loud Tips Uncategorized Video Whatever

Blogs

Buttons

Planetarium