 				return "";
 			}
 		}
+		private function getScaleFactor(ev:InvokeEvent):Number {
+			if(ev.arguments.length > 2) {
+				log("scale factor set to " + parseFloat(ev.arguments[2]));
+				return parseFloat(ev.arguments[2]);
+			}
+			return 1;
+		}
 
 		private function log(message:String="", add_new_line:Boolean=true):void {
 			outfield.appendText((add_new_line ? "\n" : "") + message);


			inputFilePath = getInputFile(ev);
			outputDirPath = getOutputDir(ev);

			log("Input file: " + inputFilePath);
			log("Output directory: " + outputDirPath);

		private var outputDirPath:String;
		private var offsetMatrix:Matrix;
		private var bBox:Rectangle;
		private var scaleFactor:Number;



