       }
 
       var __contextmenu;
+      var __bgcolorhidden:Boolean = false;
 
       /* LzSprite.setContextMenu
        * Install menu items for the right-mouse-button 

              this.graphics.clear();
          } else {
              this.graphics.clear();
              this.graphics.beginFill(this.bgcolor);
              this.graphics.drawRect(0, 0, this.lzwidth, this.lzheight);
              this.graphics.endFill();
          }

                                                             o.bb,
                                                             o.ab ? o.ab : 0);
      }

      /** setBGColor( String/Number:color )
          o Sets the background color of the sprite
          o Can be a number (0xff00ff):void or a string ('#ff00ff'):void 
      */
      public function setBGColor( c:* ):void {
          if (this.bgcolor == c && ! this.__bgcolorhidden) return;
          if (c != null || this.__contextmenu == null) {
              this.__bgcolorhidden = false;
              this.bgcolor = c;
          } else {
              // create an invisible background
              this.__bgcolorhidden = true;
              this.bgcolor = 0xffffff;
          }
          draw();
      }

