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

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -

gtk - Python Window Resize -

c# - read full xml file data over tcp -