package 
{
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.events.KeyboardEvent;
	import flash.events.MouseEvent;
	
	/**
	 * ...
	 * @author KEFIR
	 */
	public class  Intro extends MovieClip
	{
		var done:Boolean = false;
		
		function onEnterFrame(e:Event):void {
			if (currentFrameLabel == 'finish' && !done) {
				stop();
				done = true;
				(parent as Main).menuMode();				
			}
		}
		
		public function onKeyDown(e:KeyboardEvent):void {
			stop();
			done = true;
			(parent as Main).menuMode();
		}
		
		function Intro() {
			addEventListener(Event.ENTER_FRAME, onEnterFrame);
		}
	}
	
}