Core Classes - Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual

Migrating applications to flex 2
Table of Contents

Advertisement

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
alert()
attachApplication
backgroundColor
className
constructObject()
42
Flex Classes
Change description
Removed. You must now use the
mx.controls.Alert.show()
additional changes to Alert, see
on page
61.
Removed.
For information on changes to setting the
style property, see the entry for
Removed. Now on UIComponent.
Removed.
method. For information about
"mx.controls.Alert"
backgroundColor
/
fillAlphas
fillColors
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents