title: checking if child exists
body: <p>Hello i have a function as following:</p>
  
  <pre><code>private function seatClickHandler(e:MouseEvent):void{
  
              var check:Check = new Check();
              if(e.target.contains(check)){
                  e.target.removeChild(seat);
              }else{
                  e.target.addChild(check);
              }
          }
  </code></pre>
  
  <p>basicly i want to check if e.target contains a child called check. If it does i want e.target to remove the child, else i want to add the child. But the method i tried doesnt seem to work although i think this is the way to go. Any suggestions?</p>