According to the event of program loading ..?

Does anyone know what onLoad () or similar event is in Flex? I try to initialize, but without joy.

            protected function videoArea_initializeHandler(event:FlexEvent):void
        {
            var currentPosition:int = videoArea.verticalScrollPosition;
            if (currentPosition < 0)
            {
                left_button.visible = false;
                right_button.visible = true;
            }
        }
+3
source share
2 answers

A better alternative for onLoad()in Flex would be creationComplete.

See this link (Adobe) and this link (MikaFlex) for more information on the event hierarchy.

+3
source

What are you trying to initialize? If you request Flex Parallel with OnLoad (); maybe you should tell us where onLoad () comes from?

I highly recommend reading Flex Component LifeCycle .

. MXML, preinitialize. creationComplete.

+2

Source: https://habr.com/ru/post/1754790/


All Articles