Properties with the $ Prefix in Flex

What is the value of the $ prefix for some properties of Flex objects?

eg. item.$width

+4
source share
3 answers

The $identifier is the naming convention used for the mx_internal functions (mainly getters / seters) in the Flex SDK. While the _identifier used for private and mx_internal .

For a precise definition of naming conventions, check this page: Coding Conventions - Flex SDK

+6
source

The $ sign is only part of the subset of legal characters that can be used to denote ActionScript variables (inclusion comes from the EcmaScript specification), so there is no particular meaning. All of these variables will work:

 var $t$t:String = 'a'; var $$$$$$:String = 'a'; 
+2
source

$ is a valid character in ActionScript variable / function names; the language does not process variable names starting with $ any special way.

Specific API developers can follow the convention to run all private / internal variables using $ - or they are from a language such as PHP, where all variable names must start with $

+2
source

All Articles