Why is loaderInfo available only after the firewall starts?

In an AS3 project, we can access loaderInfo on the first line of the root class constructor. This means that the entire AS3 application can use the loaderInfo object.

However, in Flex, it seems that the loaderInfo object is not available until the applicationComplete event is dispatched. This is problematic for me, as other components (which should use loaderInfo) are initialized long before the applicationComplete event is dispatched.

Something is missing for me. Thanks for all your help! :)

+3
source share
3 answers

Application.application.systemManager.stage.loaderInfo Flex.

: http://www.actionscript.org/forums/showthread.php3?p=938460&posted=1#post938460

+5

Flex 4:

FlexGlobals.topLevelApplication.systemManager.stage.loaderInfo

+3

Because the applicationComplete event occurs when the application’s layout is added to the display list, so this page is not available.

+1
source

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


All Articles