FlexEvent.UPDATE_COMPLETE
is dispatched on every update of the display list. It is dispatched after every invalidation - after user interaction or change in the components on the current display list. Use FlexEvent.CREATION_COMPLETE
instead. It is dispatched only once (initiated by the LayoutManager
), just after the component has been initialized and added to the display list.
There are many articles about the Flex component lifecycle (e.g. this), where you can find more information about the invalidation mechanisms and the events dispatched.