title: fetch variables from child movieclip in parent? Flash AS3
body: <p>I have some variables defined in a child MC:</p>
  
  <pre><code>var first_nme = data.return_first;
      var second_nme = data.return_second;
      var email_addr = data.return_email;
      var user_domain = data.return_domain;
      var user_name = data.return_username;
  </code></pre>
  
  <p>I'm trying to use those variables in a parent movieclip/another movieclip.</p>
  
  <p>I've tried the trace method:</p>
  
  <pre><code>    trace(MovieClip(verif).first_nme);
  
  //'verif' is the mc name
  
      trace(MovieClip(parent).first_nme);
  </code></pre>
  
  <p>both of the above return an undefined error for the var first_nme.</p>
  
  <p>could anyone tell me how to do this properly?</p>
  
  <p>thanks</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p><strong>Child:</strong></p>
  
  <pre><code>function completeHandler(event:Event):void{
  
      // Load the response from the PHP file
      var data:URLVariables = new URLVariables(event.target.data);
      var returnn_stat = data.return_status;
      var ffferror256 = data.return_value;
      returnn_stat = returnn_stat.replace(/\s/m, "");
  
  
      if (returnn_stat == "FAILED"){
      status_txt.text = ffferror256;
  
      }
      else if (returnn_stat == "PASSED"){
  
      var first_nme = data.return_first;
      var second_nme = data.return_second;
      var email_addr = data.return_email;
      var user_domain = data.return_domain;
      var user_name = data.return_username;
  
      MovieClip(parent).gotoAndPlay("confirm");
  
      first_txt.text = first_nme;
      second_txt.text = second_nme;
      email_txt.text =  email_addr;
      username_txt.text = user_name;
      domain_txt.text = user_domain;
  
  
      }
      else {
          status_txt.text = "Oops, something went wrong. Please try again later.";
  
      }
  
  }
  </code></pre>
  
  <p><strong>PARENT:</strong></p>
  
  <pre><code>trace(MovieClip(verif).getChildAt(0).first_nme);
  txtt_txt.text = first_nme;
  </code></pre>
  
  <p>I've tried with the frame number in the line <code>trace(MovieClip(verif).getChildAt(0).first_nme);</code> but still the same error.</p>