title: action script 2.0 simple string comparing with conditional statement
body: <p>So I have this crazy problem with comparing 2 strings in ActionScript 2.0 </p>
  
  <p>I have a global variable which holds some text (usually it is "statistic") from xml feed </p>
  
  <pre><code>_root.var_name = fields.firstChild.attributes.value;
  </code></pre>
  
  <p>when I trace() it it gives me the expected message </p>
  
  <pre><code>trace(_root.var_name); // echoes "statistik"
  </code></pre>
  
  <p>and when I try to use it in conditional statement the rest of code is not being executed because comparing :</p>
  
  <pre><code>if(_root.overskrift == "statistik"){
      //do stuff
  }
  </code></pre>
  
  <p>returns false!</p>
  
  <p>I tried also with: </p>
  
  <pre><code>if(_root.overskrift.equals("statistik"))
  </code></pre>
  
  <p>but with the same result.</p>
  
  <p>Any input will be appreciated.</p>