 		private var separator:String = "_";
 		private var outfield:TextField;
 		private var outputDirPath:String;
-		private var offsetMatrix:Matrix;
+		private var offsetMatrix:Matrix = new Matrix();
 		private var bBox:Rectangle;
 		private var scaleFactor:Number;
 		private var pane:ScrollPane;

		//Saves the current frame of the loader object to a png
		private function saveFrame():void {
			var bitmapData:BitmapData = new BitmapData(outputWidth, outputHeight, true, 0x0);
			bitmapData.draw(loader.content, offsetMatrix);
			var bytearr:ByteArray = PNGEncoder.encode(bitmapData);
			var increment:String = '';

				out = '0' + out;
			}
			return out;
		}

		//Called for every frame
