[AS3] Closest movieclip

Hello everyone. I’m trying to make a game where my movieclip will automaticly point at the closest enemy. I’ve tried push() the X and Y coordinates of my enemies to an array, but with no luck. This is my code so far:

http://pastebin.com/Q6nRVQyZ

I’ve added some comments, so you can see what’s going on.

If you have any questions or there’s anything else you don’t understand, please ask.

Also, this is my code for adding enemies:

var enemyContainer:MovieClip = new MovieClip();
addChild(enemyContainer);
for (var i:int = 0; i<5; i++){
	var enemy:MovieClip = new Enemy();
	enemyContainer.addChild(enemy);
	enemy.x = i*100;
	enemy.y = i*100;
}

Regards,
Mathias