Bitmap class

Hi

i am trying to create a dynamic photo gallery through xml.
i wanted to use BitmapData.loadBitmap to load images but this loads images from flash library with Identifier. there lies my problem, is there a way where i can dynamically load images in the library from xml.

Or anyother way where i can load images dynamically and they appear smooth on scaling the stage, nomally in flash if the images are scaled they appear jaggered.

thanks in advance

regards
Piyush