title: Change MovieClip width along with dynamic text field's size inside it
body: <p>I am a newbie in Flash CS3.
  I was wondering if anyone could tell me how resize the width of of a movie clip according to the size the size of dynamic text inside it. I did it by creating a text field 'myText' and then converted it to a MovieClip symbol and named the MovieClip as myClip. 
   The text in myText is assigned at run-time and its width changes according to the text.</p>
  
  <p>I did it as follows:-</p>
  
  <pre><code>myClip.myText.selectable = false;
  myClip.mouseChildren = false;
  myClip.useHandCursor = true;
  myClip.buttonMode  = true;
  myClip.myText.width = myClip.myText.textWidth + 5;
  </code></pre>
  
  <p>On doing this I find the clickable area changes according to the size of the text field but the text field doesn't appear at all.
  Any help is greatly appreciated.</p>