package classes.matuto.utils.display
{
    import flash.display.*;

    public class Mascara extends Sprite
    {
		private var masc_sprite       :Sprite    =   new Sprite();
		private var obj               :DisplayObject;
		
        public function Mascara(obj:DisplayObject)
        {
			this.obj                =  obj;
			
            masc_sprite.graphics.beginFill(0x00FF40);
			masc_sprite.graphics.drawRect(obj.x,obj.y,obj.width,obj.height);
			masc_sprite.graphics.endFill();
			
			this.addChild(masc_sprite);
			
			obj.mask = masc_sprite;
        }
		
		

    }  //END CLASS
}
