 	import flash.events.TimerEvent;
 	import flash.filesystem.File;
 	import flash.filesystem.FileStream;
+	import flash.geom.Rectangle;
+	import flash.geom.Matrix;
 	import flash.net.URLRequest;
 	import flash.text.TextField;
 	import flash.text.TextFieldAutoSize;

			outputWidth = Math.ceil(ev.target.width);
			outputHeight = Math.ceil(ev.target.height);
			outfield.appendText("\nLoaded!");
			stopClip(loadedSwf);
			goToFrame(loadedSwf, 0);
			totalFrames = loadedSwf.totalFrames;
			timer = new Timer(1);

			timer.addEventListener(TimerEvent.TIMER, step);
			timer.start();

		}

		//Called for every frame

		private var prefix:String;
		private var outfield:TextField;
		private var outputDirPath:String;
		private var offsetMatrix:Matrix;
		private var bBox:Rectangle;



		public function swf2png() {
