title: Action Script 3 - how to pass variables through multiple scenes
body: <p>I am using flash cs6 and making a game in which some squares are falling down randomly and we have a wall that is controlled by the mouse. Every square we dodge 10 points are added to the score. If the squares touch the wall then we go to another scene called the "the end" scene in this scene we display the score to the player. So I want to pass the score variable to that scene. I have tried googling it a lot of times but it couldn't help. So my only hope is you guys. Please help.</p>
  
  <p>How do I go to the next scene:</p>
  
  <pre><code>if (wall.hitTestObject(square))
  {
  gotoAndStop(1, "The End");
  }
  </code></pre>