
109ADOBE FLEX 3
Creating and Extending Adobe Flex 3 Components
Defining public properties in ActionScript
You can use one of the following methods to add public properties to your ActionScript components:
• Define public variables
• Define public getter and setter methods
Accessing public properties in MXML
All public properties defined in your component are accessible in MXML by using MXML tag properties. For
example, you might allow the user to pass a value to your component, as the following example shows:
<MyComp:MyCustomComponent prop1="3"/>
To create a component that takes tag attributes in MXML, you define a public variable with the same nam ...