2 Replies Latest reply on Oct 17, 2009 6:54 AM by Gregory Lafrance

    access to the created children

    christoferek

      Hi,

       

      I created this:

       

                     <mx:Canvas id="outerCanvas">

                          <mx:Canvas id="innerCanvas">

       

                          </mx:Canvas>

                     </mx:Canvas>

       

      then I created some code:

       

      var newCanvas:Canvas = new Canvas();

      Application.application.outerCanvas.innerCanvas.addChild(newCanvas);

       

      My question is: How do I get the access to the newCanvas? Application.application.outerCanvas.innerCanvas.newCanvas doesn't work.

       

      Perhaps there is a good article or something  on the subject in the Internet please write a link to it. I googled a lot but I couldn't find anything explaining the problem.

       

      Thank you in advance for your help

       

      Chris