After an object has been added to an array via push(), how can you reference the x or y value of it? For example:
var Test:Sprite = new Sprite();
Test.graphics.beginFill(0x000000);
Test.graphics.drawRect(0,0,10,10);
testHolder.addChildAt(genericBlock,0);
The
xandyvalues of any object stored in an array can be accessed via:This is a great tutorial to learn how to implement arrays and manipulate all/single elements held within them:
http://www.republicofcode.com/tutorials/flash/as3arrays/