What's wrong with this Timer syntax?

This function locks up in the while loop, presumably because myTimer.running remains true. This timer should run once, for two seconds, correct? I probably shouldn’t post when I’m tired, probably an obvious, glaring error, but I have to get this done. Thanks for any help.

	function timeOut() {
		import flash.utils.Timer;
		var myTimer:Timer=new Timer(2000,1)
		myTimer.start()
		while (myTimer.running==true) {}
                    // do something ...
	}