Embed images to different vars

Hi,

I have those images: img1.png, img2.png…, imgn.png.
and I want to embed them without writing n lines of embed.
so I want something like:

for(i:Number=1;i<n;i++)
{
  [embed(source="img"+i+".png")]
  var img+i:object
}

but you can’t concatanate vars names…

does someone has an idea for a solution?