title: ActionScript-3 timing issue / unwanted background multi-threading
body: <p>I created a new class with private vars and public get properties.<br>
  When I create a new instance of the class, it loads text files content to the private vars - it probably takes a bit of time to load it.</p>
  
  <p>After the new instance created, I try to get the value of the private var with the get property:</p>
  
  <pre><code>var item1:MyItem = new MyItem("0001");
  
  trace(item1.ItemName);
  </code></pre>
  
  <p>Well, The output is blank.<br>
  <strong>The string that ItemName points to is not undefined, it contains data.</strong><br>
  So, it's like a timing issue, and ActionScript is probably running the code using background multi-threading, so it's calling the trace command before it finished to run all methods in the MyItem c'tor (methods that load the text file data into the String var that ItemName points to).  </p>
  
  <p>Is there any way to force ActionScript avoid using this unwanted "background multi-threading", and run the code normally (by the order of the commands)?<br>
  I mean like "Don't run the 2nd command until you finished running the 1st one".</p>
  
  <p>Thanks for any help..<br>
  Freddy</p>