package  clases {
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	
	public class actividades extends MovieClip{
		
		public var clip:MovieClip
		public var valor:int
		
		public function actividades(clipPasado:MovieClip,valorPasado:int) {
			clip =  clipPasado
			valor =  valorPasado
			clip.useHandCursor = true
			clip.mouseChildren = false
			clip.buttonMode = true
			clip.nombre.text = String("Actividad "+valor)
			clip.addEventListener(MouseEvent.CLICK,clic)
			
		}
		public function clic(event){
			MovieClip(clip.root.parent.parent.parent).cargar_actividad(valor)
			}

	}
	
}
