I’m looking for a standard way to name components in my Flex application. For example, all TextFields begin with ‘txt’ in their ID attribute (i.e., ‘txtFirstName’). Rather than re-invent the wheel, is anyone familiar with a list of prefix naming conventions that I can use?
Share
There is no prefix convention that Adobe recommends since they use the full name of the component in a component instance name.
For instance: usernameTextInput, userComboBox, etc.
More info: http://opensource.adobe.com/wiki/display/flexsdk/Coding+Conventions#CodingConventions-Naming
If you really want to use prefixes, you might want to use the VB prefixes: http://www.rwc.uc.edu/cook/VBI_PREFIXES.HTM