Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual page 152

Creating and extending flex 2 components
Hide thumbs Also See for FLEX 2 - CREATING AND EXTENDING COMPONENTS:
Table of Contents

Advertisement

Dispatches the
f.
component's children are initialized, but the component was not sized or processed for
layout. You can use this event to perform additional processing of the component
before it is laid out.
Dispatches the
g.
Dispatches the
h.
During the next
4.
render
Calls the component's
a.
Calls the component's
b.
Calls the component's
c.
Calls the component's
d.
Dispatches the
e.
Flex dispatches additional
5.
updateDisplayList()
invalidateSize()
After the last
6.
render
Makes the component visible by setting the
a.
Dispatches the
b.
and processed for layout. This event is only dispatched once when the component is
created.
Dispatches the
c.
updateComplete
characteristic of the component changes and the component is updated for display.
Most of the work for configuring a component occurs when you add the component to a
container by using the
a container, Flex cannot determine its size, set inheriting style properties, or draw it on the
screen.
You can also define your application in MXML, as the following example shows:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Box>
<mx:Button label="Submit"/>
</mx:Box>
</mx:Application>
The sequence of steps that Flex executes when creating a component in MXML are equivalent
to the steps described for ActionScript.
152
Creating Advanced Visual Components in ActionScript
event on the component. At this time, all of the
initialize
event on the parent container.
childAdd
event on the parent container.
initialize
event, Flex performs the following actions:
commitProperties()
method.
measure()
layoutChrome()
updateDisplayList()
event on the component.
updateComplete
events if the
render
methods call the
, or
invalidateDisplayList()
event occurs, Flex performs the following actions:
event on the component. The component is sized
creationComplete
event on the component. Flex dispatches additional
updateComplete
events whenever the layout, position, size, or other visual
method. That is because until you add the component to
addChild()
method.
method.
method.
commitProperties()
invalidateProperties()
methods.
property to
visible
,
, or
measure()
,
.
true

Advertisement

Table of Contents
loading

Table of Contents