Multiple choice technology web technology

When the initialize event is dispatched in flex?

  1. Dispatched when a component has been created in a rough state, and no children have been created.

  2. Dispatched when the component has been laid out and the component is visible (if appropriate).

  3. Dispatched when a component and all its children have been created, but before the component size has been determined

  4. Dispatched when a component has been updated

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In the Flex component lifecycle, the initialize event is dispatched after the component and all its children have been created but before the component's size has been determined. Option C accurately describes this stage - creation is complete, but layout calculation has not occurred yet. The preinitialize event fires earlier, and creationComplete fires after layout.