
19ADOBE FLEX 3
Creating and Extending Adobe Flex 3 Components
The variable that stores the property’s value cannot have the same name as the getter or setter. By convention,
precede the name of the variables with one (_) or two underscores (__). In addition, Adobe recommends that you
declare the variable as private or protected.
Users of the class can access the public property, as the following example shows:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:MyComp="myControls.*" >
<MyComp:MyButton label="Submit" initialCount="24"/>
</mx:Application>
If the getter or setter overrides a getter or setter in a superclass, ensure that you ...