title: Line of code ignored in function
body: <p>Ok. Super weird issue...</p>
  
  <p>I have a function that is called when one movieclip is placed on another.  This code is on the timeline for the movieclip:</p>
  
  <pre><code>function eventWhenPlacedOn(){
     trace("placed item!");
     gotoAndStop(2);
     placedItem=true;
     trace(placedItem+" "+currentFrame);
     Globals.itemsArr[3].hideItem();
  }
  </code></pre>
  
  <p>All of the code works except the gotoAndStop. The items hides correctly like the last line tells it to and placedItem is set to true, but it never changes to frame 2! It even traces "true 1"!  I have no idea what I'm doing wrong and it's driving me crazy.  Any answers for this?</p>