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