in Flex, how to add child as first child? -


I'm adding a child:

containerComponent.addChild (newComponent);

But, it adds the form of the last child, how can I add new compans as a child before the Container Companent?

Use addChildAt instead of addChild with index parameter set 0:

  Container Component.Adchilate (new editor, 0);  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -