title: Action Script 3. Multiple stages are like 1
body: <p>I'm creating a simple flash game, where characters move on the groundwith some  stages to jump over.</p>
  
  <p>The problem is all the stages are acting as 1 object, which can make the character appear like it's flying in the air:</p>
  
  <p><img src="https://i.stack.imgur.com/EwV6n.png" alt="on air"></p>
  
  <p>All stages are called: <code>ground3</code>
  Here is part of code where the character jumps and stay on the ground:</p>
  
  <pre><code>if(Hero.y_speed&gt;0 &amp;&amp; Hero.hitTestObject(ground3)){
      Hero.y_speed=0;
      if(space){
          trace("You clicked SPACE");
          Hero.y -= 80;
      }
  </code></pre>
  
  <p>Have you any ideas how to fix this?</p>