title: How I can change a value of from a variable that is in the main timeline from other timeline?
body: <p>In AS2 was easy to change a value from a variable that was in other timelines. Now I can't do it the old way!</p>
  
  <p>Basically what I need is to change a value from a variable that is in the main timeline, from another timeline.</p>
  
  <p>Example:</p>
  
  <p>Main timeline:</p>
  
  <pre><code>var totalA:int = 0;
  </code></pre>
  
  <p>Other timeline, after adding the eventListener to the function:</p>
  
  <pre><code>parent.parent.totalA++;
  </code></pre>
  
  <p>So it doesn't work. Can anybody explain why?
  Thanks</p>