Macromedia flex 2-migrating applications to flex 2 Manuel D’Utilisation

Page de 184
42
Flex Classes
Core classes
The UIObject and UIComponent classes have been combined. As a result, references to the 
UIObject class should be replaced by UIComponent. Visual Flex controls are subclasses of the 
UIComponent class (formerly UIObject). In Flex 1.5, the UIComponent class was a 
descendent of the MovieClip class. Now, the UIComponent class descends from the Sprite 
class. The following example shows the full hierarchy of a Flex control, such as the Button 
control:
Object
|
+--flash.events.EventDispatcher
|
+--flash.display.DisplayObject
|
+--flash.display.InteractiveObject
|
+--flash.display.FlashContainer
|
+--flash.display.Sprite
|
+--mx.core.UIComponent
|
+--mx.controls.Button
The EventDispatcher class was a mixin. It is now a base class in the flash.events package.
This section describes changes to Flex classes in the mx.core package.
mx.core.Application
The Application class now directly extends mx.core.Container instead of mx.containers.Box. 
The following table describes changes to the mx.core.Application class:
Member
Change description
alert()
Removed. You must now use the 
mx.controls.Alert.show()
 method. For information about 
additional changes to Alert, see 
attachApplication
Removed.
backgroundColor
For information on changes to setting the 
backgroundColor
 
style property, see the entry for 
fillAlphas
/
fillColors
.
className
Removed. Now on UIComponent.
constructObject()
Removed.