# Photo Gallery question

**URL:** <https://forum.kirupa.com/t/photo-gallery-question/278726>\
**Category:** Uncategorized\
**Created:** [January 4, 2009, 5:52pm UTC](https://forum.kirupa.com/t/photo-gallery-question/278726 "2009-01-04T17:52:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Icarus458](https://avatars.discourse-cdn.com/v4/letter/i/838e76/32.png) [@Icarus458](https://forum.kirupa.com/u/Icarus458)\
**Post date:** [January 4, 2009, 5:52pm UTC](https://forum.kirupa.com/t/photo-gallery-question/278726/1 "2009-01-04T17:52:32Z")

</div>

I am using the tutorial for the photo gallery using xml  
[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/forum/../developer/mx2004/xml_flash_photogallery.htm)

How would I modify the picture area so that no matter what format, portrait or landscape, it would load from the center and not from the top left of the image?
