2 Replies Latest reply on Mar 13, 2008 12:56 PM by feef10

    Canvas not displaying controls added with addChild

      I have a custom class holding some information, a property in the class is an XML string and another method parses the XML add creates controls (labels and buttons) based on the xml. I also have a variable named renderer which is a mx.containers.Canvas. After the XML is loaded and the controls are added using Canvas.addChild() I add the Canvas to my stage. The problem I'm running into is that even though the Canvas is added to the stage, I cannot see any of the controls inside of the canvas. Doing a trace(Canvas.numChildren()); I can see that I have added 101 children to my canvas container (which is what my xml file shows) however they will not display. I know the canvas has been added to the stage because I can see the scroll bars when i set the policies to "on" and it even sets the scroll bars correctly if the components are too big for the canvas and would have to be scrolled down to see them all, it just doesn't show any of the components. Anyone run into a similar issue?