I have an array of objects, each of which has a series of x,y properties, like x1,y1,x2,y2,..... now how can I access these dynamically?