title: "this" always on top when visible
body: <p>I'm making a game in As3. </p>
  
  <p>I've got a child named "batiments". It is called in my Engine class at the begining of the game, like that :</p>
  
  <pre><code>    batiments = new Batiments(stage);
      addChild(batiments);
      batiments.visible = false;
  </code></pre>
  
  <p>So, when the player clicks on a button on the stage, it's calling this function : </p>
  
  <pre><code>private function showBatiments():void{
          Engine.batiments.visible = true;
      }
  </code></pre>
  
  <p>BUT, during my game, other childs are being called randomly every 2 minutes. Like that : </p>
  
  <pre><code>public function apparitionDechet(event : TimerEvent):void{
      var mc:DisplayObject = new _classes[Math.floor(Math.random() * _classes.length)]();
      _movieClips.push(mc);
      stageRef.addChild(mc);
      mc.addEventListener(MouseEvent.CLICK, removePoubelle, false, 0, true);
  </code></pre>
  
  <p><strong>Problem : When the function "<code>showBatiments</code>" is called and batiments is visible, the mc child are on top of it. Is it possible to put in my code something to say batiments should always be on top of everything ?</strong></p>
  
  <p>I've got an <code>Engine.as</code> class (where batiments is added). 
  I've got a <code>Batiments.as</code> class (so batiments has is own class). 
  I've got a <code>Dechet.as</code> class (where the mc child are added randomly). </p>
  
  <p>Thank you for your help,  </p>