 			loadedSwf = MovieClip(ev.target.content);
 			outputWidth = Math.ceil(ev.target.width);
 			outputHeight = Math.ceil(ev.target.height);
-			outfield.appendText("\nLoaded!");
+			log("Loaded!");
 			totalFrames = loadedSwf.totalFrames;
-			outfield.appendText("\nFrame count: " + totalFrames);
+			log("Frame count: " + totalFrames);
 
 			calculateBBox();
 

					}
				}
				else {
					outfield.appendText("\ncwd: " + ev.currentDirectory.nativePath);
					return ev.currentDirectory.nativePath;
				}
				return "";
			}
		}
		//Invoke handler called when started
		private function onInvoke(ev:InvokeEvent):void {

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

			outfield.appendText("\nInput file: " + inputFilePath);
			outfield.appendText("\nOutput directory: " + outputDirPath);
			loadSwf();
		}


			}
			else {
				timer.stop();
				log("Done!");
				exit(0);
				return;
			}
