MACROMEDIA FLEX-FLEX ACTIONSCRIPT LANGUAGE Bedienungsanleitung Seite 33

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 124
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 32
TUTORIALS POINT
Simply Easy Learning Page 28
1
preInitialize: mx.core.UIComponent.preinitialize
Event Type: mx.events.FlexEvent.PREINITIALIZE
This event is dispatched at the beginning of the component initialization sequence. The component is in
a very raw state when this event is dispatched. Many components, such as Button control, creates
internal child components to implement functionality. For example, the Button control creates an internal
UITextField component to represent its label text.
When Flex dispatches the preinitialize event, the children, including all the internal children, of a
component have not yet been created.
2
initialize: mx.core.UIComponent.initialize
Event Type: mx.events.FlexEvent.INITIALIZE
This event is dispatched after preinitialize phase. Flex framework initializes the internal structure of this
component during this phase. This event automatically fires when the component is added to a parent.
you do not need to call initialize() generally.
3
creationComplete: mx.core.UIComponent.creationComplete
Event Type: mx.events.FlexEvent.CREATION_COMPLETE
This event is dispatched when the component has finished its construction, property processing,
measuring, layout, and drawing.
At this point, depending on its visible property, the component is not visible even though it has been
drawn.
4
applicationComplete: spark.components.Application.applicationComplete
Event Type:mx.events.FlexEvent.APPLICATION_COMPLETE
Dispatched after the Application has been initialized, processed by the LayoutManager, and attached to
the display list.
This is the last event of the application creation life cycle and signifies that application has been loaded
completely.
Flex Life Cycle Example
Let us follow the following steps to test life cycle of a Flex application by creating a test application:
Step
Description
Seitenansicht 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 123 124

Kommentare zu diesen Handbüchern

Keine Kommentare