package  clases{
	import flash.display.MovieClip;
	import clases.randomico
	
	public class desorden extends MovieClip{
		
		public var referencia:MovieClip
		public var pos:Array = new Array
		public var maximo:int
		
		public function desorden(clips:Array) {
			
			
			maximo = clips.length
			
			var desordenar:Array = randomico.randomizar(maximo,0,(maximo-1))
			
			//trace(desordenar)
			
			for(var i = 0; i<maximo;i++){
				
				pos.push([clips[i].x,clips[i].y])
			}
			for(var j = 0; j<maximo;j++){
				
				clips[j].x = pos[desordenar[j]][0]
				clips[j].y = pos[desordenar[j]][1]
		
				}
			
		}

	}
	
}
