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

Page de 184
44
Flex Classes
The following table describes changes to the Container class:
Member
Change description
allChildrenList
rawChildren
backgroundAlpha
Deprecated. Use the 
background
 style to set this value.
backgroundDisabledColor
Deprecated.
backgroundSize
Deprecated. Use the 
background
 style to set this value.
childAdded
 (formerly 
childCreated
)
childAdd
childRemoved
 (formerly 
childDestroyed
)
childRemove
childIndexChanged
childIndexChange
childrenCreationCompleteEffect
Removed. Use the 
creationCompleteEffect
 effect.
createComponent()
createComponentFromDescriptor()
. This method now takes 
a descriptor as its first argument rather than either a 
descriptor or a descriptor index. If you know the index, use 
childDescriptors[index]
 to get the descriptor itself.
This method requires that you call the 
validateNow()
 
method on the container to make the specified 
component appear in the display list. Alternatively, you 
can use the 
createComponentsFromDescriptors()
 method 
to create all components of the container.
createComponents()
createComponentsFromDescriptors()
createdComponents
This property is now internal only.
dataObjectChanged
dataChange
defaultButton
The 
defaultButton
 property of a container used to be set 
as follows:
<mx:Form defaultButton="id">
You must now set it as follows:
<mx:Form defaultButton="{id}">
Where 
id
 is the name of the Button control given in the 
MXML tag.
dropShadow
dropShadowEnabled
hLineScrollSize horizontalLineScrollSize
hPageScrollSize horizontalPageScrollSize
hPosition
horizontalScrollPosition
hScrollBarStyleName
horizontalScrollBarStyleName