title: as3 removeEventListener not working
body: <p>This is driving me crazy. Why don't the removeEventListeners work?</p>
  
  <p>Class constructor</p>
  
  <pre><code>public function item(brand:String, title:String, price:Number, mp:Number, 
         path:String, sb1:*, sb2:*):void
  </code></pre>
  
  <p>sb1:* and sb2:* are object hooks.</p>
  
  <p>These are assigned listeners:</p>
  
  <pre><code>_sb1.addEventListener("Changed", slideBarChanged); // Price
  _sb2.addEventListener("Changed", slideBarChanged); // MegaPixels
  </code></pre>
  
  <p>This function is called:</p>
  
  <pre><code>private function slideBarChanged(e:Event):void
  {           
  switch(e.target.type)
  {
      case "Price": 
          if(int(e.target.currVal) &gt; Math.abs(this.price))
          {
              this._active = false;
              _sb2.removeEventListener("Changed", slideBarChanged);
          }
          else {
              this._active = true;
              _sb2.addEventListener("Changed", slideBarChanged);
          }
          break;
  
      case "MegaPixels": 
          if(int(e.target.currVal) &gt; Math.abs(this.mpixels))
          {
              this._active = false;                           
              _sb1.removeEventListener("Changed", slideBarChanged);
          }
          else { 
              this._active = true;
              _sb1.addEventListener("Changed", slideBarChanged);
          }
          break;          
  }
  </code></pre>
  
  <p>Everthing works, but the listener isn't removed when the item goes _active = false;
  Effectively this should work like this:</p>
  
  <p>If the price is too high then ignore the megapixels and only listen to the price. 
  If the megapixels are too high then ignore the price and only listen to the Megapixels.</p>
  
  <p>breaking my brain, any help is greatly appreciated.
  Thanx.</p>