Using the properties of an element in an array..Can I?

i have an array containing all the bases in a game… when my ship lands a proximity check is made between the ship and each member of the basesArray…
i want to iterate through the array and subtract the ship x/y from the array element(base)x/y. if the result is between 50 +/- that element becomes the active base. here’s the code:

public function baseProximityCheck():void 
	{
		for (var i:Object; i<playScreen.baseArray.length; i++)
		{
	               trace("view395 baseX-shipX = "+i.x-playScreen.ship.x)
						
	         }
			
	}

and i’m getting the following:

1067: Implicit coercion of a value of type String to an unrelated type Number.
1118: Implicit coercion of a value with static type Object to a possibly unrelated type Number.

how can i access the properties of an array element?