title: Functions called in incorrect sequence, or earlier call was unsuccessful
body: <p>in my application,</p>
  
  <p>I did some trace statements of a file</p>
  
  <p>For example</p>
  
  <pre><code>if(oldFile.parent.toString()!=file.parent.toString())
  </code></pre>
  
  <p>There are some other file print statements , and it seems to encounter this error stated below.
  But the error does not appear every time. For example i ran my application for 20 times, it will encounter this error once. </p>
  
  <p><code>Error: Error #2037: Functions called in incorrect sequence, or earlier call was unsuccessful.
  at Error$/throwError()
  at flash.filesystem::File/resolveComponents()
  at flash.filesystem::File/get parent()</code></p>