I’m having a viewstack with a few components.
Those components have to execute a function with parameters coming from other components.
Therefore the other component may not me loaded directly.
Is there any way to load a component via AS3 with a function?
Thanks a lot!
eterps details how to add child components at run time. If you’ve specified your child components in MXML, you have a few options for creation:
creationPolicy=auto— the engine decides when components are instantiatedcreationPolicy=all— everything is instantiated at startupcreationPolicy=autoornone, but manually instantiate children when needed. See: creating deferred componentsSince
autoisn’t working for you, I’d tryall. Only if that instantiates too much too soon would I delve into deferred components.