I am placing 6 images on the stage using a for loop as such:
for (var i:uint = 0; i < 6; i++)
{
var padding:uint = 15;
var imageX:uint = 0;
image = new Image();
image.x = imageX;
container.addChild(image);
imageX += image.width + padding;
}
Then using MouseEvents I make each image grow on MOUSE_OVER and shrink back on MOUSE_OUT. I would like to maintain the spacing (padding) in between the scaled image and the image on either side.
How do I target each image when they are created with identical identifiers?