1 Reply Latest reply on Feb 28, 2008 5:04 AM by SujitG

    Add child to canvas?

      Im trying to add a child in a new state inside a previously stated canvas:

      <mx:AddChild relativeTo="{oldCanvas}" position="lastChild">
      //my component

      But this doesnt seem to work.
        • 1. Add child to canvas?
          SujitG Level 2
          can you please check if the child component is getting added behind some other component in the canvas, due to the X and Y values of the child component. May be you can try replacing canvas with VBox and check out if the children are getting added to the container when the state changes.
          Hope this helps.