title: How to display a Spark TextArea component as a child of a MovieClip
body: <p>I need to use a TextArea in my application as it supports the TLF framework and allow edition of the text by the user.</p>
  
  <p>My problem is that this TextArea has to be the child of a MovieClip, but I can't make it work and the TextArea is not displayed.</p>
  
  <p>Here is a sample of my code:</p>
  
  <pre><code>var mc:UIMovieClip = new UIMovieClip();
  mc.graphics.clear();
  mc.graphics.lineStyle(2, 0, 1);
  mc.graphics.drawRect(0, 0, 400, 300);
  mc.width = 400;
  mc.height = 300;
  
  var textArea:TextArea = new TextArea();
  textArea.width = 350;
  textArea.height = 250;
  textArea.text = "Hello world!";
  mc.addChild(textArea);
  myCanvas.rawChildren.addChild(mc);
  </code></pre>
  
  <p>The TextArea component is displayed correctly when I add the TextArea directly as a child of the canvas, i.e when I replace the line</p>
  
  <pre><code>mc.addChild(textArea);
  </code></pre>
  
  <p>with the following</p>
  
  <pre><code>mainCanvas.addChild(mc);
  </code></pre>
  
  <p>The reason why the TextArea needs to be a child of a MovieClip is that I'm using a external library working with MovieClips.
  The trick doesn't work either if I use a UIMovieClip instead of the MovieClip.</p>
  
  <p>Can someone explain why a TextArea would not be displayed in that sort of situation?
  Is there any workaround to obtain the desired result? (I tried to use a UIComponent as an intermediate child without success)</p>