title: AS3 Flash calling main timeline from within a movieclip within a movie clip
body: <p>I've looked through similar question on this site and can't find a solution, so here is my problem:</p>
  
  <p>I have a save function that saves some data.This function is in 1 movie clip in another movie clip. After the save I want to gotoAndStop(1) of the main time line not the current nested one...can anybody help? </p>
  
  <p>Below is the code:</p>
  
  <pre><code>function save()
  {
  
      var oldname:String = so.data.username;
      so.data.username = oldname + tf.text + " " + nf.text + "\n";
      tf.text = "";
      nf.text = ""; // resets textfields
      so.flush(); // writes changes to disk
      trace("Saved");
      gotoAndStop(1);  &lt;&lt;----this must goto frame 1 of the main time line??
  }
  </code></pre>
  
  <p>This is AS3. In AS2 I used to be able to call _root. or _parent. and that would work fine but now it throws a compiler error. Stage.gotoAndStop(1); also doesnt work...</p>
  
  <p>Appreciate any help,
  Thanks in advance
  Luben</p>