package clases {
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	
	public class clicSimple extends MovieClip{
		
		public var clip:MovieClip
		public var tt:int
		public var ii:int
		
		public function clicSimple(clipPasado:MovieClip) {
			
			clip = clipPasado
			clip.alpha = 0
			clip.buttonMode = true
			
		clip.addEventListener(MouseEvent.CLICK,clic)
		}
		
		public function clic(e){
			MovieClip(clip.parent).tt++
			clip.alpha = .8
			MovieClip(clip.parent).aplauso()
			trace(MovieClip(clip.parent).tt)
			
			if(MovieClip(clip.parent).tt == 3){
				MovieClip(clip.parent).animo()
				}
			
			if(MovieClip(clip.parent).tt == MovieClip(clip.parent).ii){
				MovieClip(clip.parent).bien()
				}
			}

	}
	
}
