 			removeEventListener(Event.ENTER_FRAME, render);
 		}
 
-		// Low-level workhorse, applies the lighting effect to a bitmap. This function modifies the src and buff
-		// bitmaps. src and buff must be the same size. The bitmap with final output (either src or buff) is 
+		// Low-level workhorse, applies the lighting effect to a bitmap. This function modifies the src and buffer
+		// bitmaps. src and buffer must be the same size. The bitmap with final output (either src or buffer) is 
 		// returned.
-		protected function _applyEffect(src:BitmapData, buff:BitmapData, mtx:Matrix, passes:uint):BitmapData {
+		protected function _applyEffect(src:BitmapData, buffer:BitmapData, mtx:Matrix, passes:uint):BitmapData {
 			var tmp:BitmapData;
 			while(passes--) {
 				if(colorIntegrity) src.colorTransform(src.rect, _halve);
-				buff.copyPixels(src, src.rect, src.rect.topLeft);
-				buff.draw(src, mtx, null, BlendMode.ADD, null, true);
+				buffer.copyPixels(src, src.rect, src.rect.topLeft);
+				buffer.draw(src, mtx, null, BlendMode.ADD, null, true);
 				mtx.concat(mtx);
-				tmp = src; src = buff; buff = tmp;
+				tmp = src; src = buffer; buffer = tmp;
 			}
 			if(colorIntegrity) src.colorTransform(src.rect, _ct);
 			if(blur) src.applyFilter(src, src.rect, src.rect.topLeft, _blurFilter);

		public function dispose():void {
			if(_emissionBmd) _emissionBmd.dispose();
			if(_occlusionBmd) _occlusionBmd.dispose();
			if(_buffBmd) _buffBmd.dispose();
			_emissionBmd = _occlusionBmd = _buffBmd = _lightBmp.bitmapData = null;
		}
    }
}
		protected var _halve:ColorTransform = new ColorTransform(0.5, 0.5, 0.5);
		protected var _occlusionBmd:BitmapData;
		protected var _occlusionBmp:Bitmap;
		protected var _bufferBmd:BitmapData;
		protected var _lightBmp:Bitmap = new Bitmap;
		protected var _bufferSize:uint = 0x8000;
		protected var _bufferWidth:uint;
