1 Reply Latest reply on Jul 11, 2007 7:36 PM by ntsiii

    Display layer of new AS components in Flex

    SaltedIceCream
      When I create a new Flex component using Actionscript the component always appears on top of exisitng components.

      ex:

      var newPanel:Panel = new Panel();
      newPanel.width=300;
      newPanel.height=300;
      newPanel.x=40;
      newPanel.y=40;
      this.addChild(newPanel);

      If I do this 2 times I'll see the second one on top of the first.

      I'm trying to figure out a way to have newly created components display behind the older ones.

      I'm also curious on how to bring a component to the top or send it to the back.

      Thanks!