Overriding a method
If the method is overriding a method in a superclass, add the
keyword as the first
override
attribute:
override public function createChildren():void
If the getter/setter is overriding a getter/setter in a superclass, add the
keyword as
override
the first attribute:
override public function get label():String
override public function set label(value:String):void
By convention, setters should use the identifier
for their argument.
value
Clip parameters removed
Remove anything related to the
variable.
clipParameters
Initialization sequence changed
In Flex 1.5, the component initialization sequence was as follows:
Constructor
1.
2. init()
3. createChildren()
4. commitProperties()
5. measure()
6. layoutChildren()
7. draw()
In Flex 2.0, the
method has been removed, and the new
init()
updateDisplayList()
method replaces the
and
methods. You can move logic that was
layoutChildren()
draw()
formerly in the
method to the constructor. For a complete description of the
init()
initialization sequence for Flex 2, see Chapter 10, "Creating Advanced Visual Components in
ActionScript," in Creating and Extending Flex 2 Components.
Renamed invalidateStyle()
The
method has been renamed to
.
invalidateStyle()
styleChanged()
Renamed invalidateStyle()
163