title: MovieClip(root) Not working. How to access root variable from movieclip? Flash AS3
body: <p>Ok Ive got a simple flash file, since im trying to accomplish accessing a variable from the main stage inside a movie clip. All the things Ive found from google point to MovieClip(root). But its not working for me.</p>
  
  <p>On the main timeline:</p>
  
  <pre><code>var MyName:String;
  MyName = "kenny";
  </code></pre>
  
  <p>Then I have a movieclip called MyBox, its code:</p>
  
  <pre><code>trace(MovieClip(root).MyName);
  </code></pre>
  
  <p>And I get this error: TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@2d2df089 to flash.display.MovieClip.
      at MyBox/sendpmtext()</p>
  
  <p>I have also tried MovieClip(parent), MovieClip(parent.parent), MovieClip(stage), MovieClip(this.stage) and no luck. Any help please?</p>