title: as3 Variables changing impossibly
body: <p>I'm having an issue with a "Point" type variable <em>velocity</em> changing without any calls to change it.</p>
  
  <pre><code>private function framecode(e:Event) {
    trace(getVelocity().y);
    tracks.gotoAndStop(2);
    trace(getVelocity().y);
  }
  </code></pre>
  
  <p>This code is part of a class called "tank" which extends the one that <em>velocity</em> is used in (my moving object class). <em>velocity</em> is a private point type variable and <em>getVelocity()</em> is a public access method. <em>tracks</em> is a named movieClip contained inside the one linked with <em>tank</em>. The event listener is ENTER_FRAME. There is no coding on the frames of <em>tracks</em>.</p>
  
  <p>Somehow these two traces give different values (the first one being correct) and I can't figure out how the gotoAndStop() can possibly effect it (and hence how to fix it).</p>
  
  <p>I've found that play() does not reproduce the bug but prevFrame() and nextFrame() do. As the variable is private this class should not even have access to it to change it.</p>
  
  <p>Another strangeness is that if the event listener is changed to FRAME_CONSTRUCTED or EXIT_FRAME, there is massive lag and my movieClip randomly disappears after a few seconds.</p>
  
  <p>Thank you for reading, any help would be appreciated.</p>