 			if (_angle != 0) _matrix.rotate(_angle);
 			_matrix.tx += _originX + _x;
 			_matrix.ty += _originY + _y;
-			FP.engine.transform.matrix = _matrix;
+			_sprite.transform.matrix = _matrix;
 		}
 		
 		/**

		}
		
		/**
		 * Width of the screen.
		 */
		public function get width():uint { return _width; }

			// create screen buffers
			_bitmap[0] = new Bitmap(new BitmapData(FP.width, FP.height, false, 0), PixelSnapping.NEVER);
			_bitmap[1] = new Bitmap(new BitmapData(FP.width, FP.height, false, 0), PixelSnapping.NEVER);
			FP.engine.addChild(_sprite);
			_sprite.addChild(_bitmap[0]).visible = true;
			_sprite.addChild(_bitmap[1]).visible = false;
			FP.buffer = _bitmap[0].bitmapData;
			_width = FP.width;
			_height = FP.height;
