# \[AS2\] photo gallery using flash and xml

**URL:** https://forum.kirupa.com/t/as2-photo-gallery-using-flash-and-xml/299143
**Category:** flash
**Created:** [October 30, 2009, 2:22pm UTC](https://forum.kirupa.com/t/as2-photo-gallery-using-flash-and-xml/299143 "2009-10-30T14:22:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![martamieta](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@martamieta](https://forum.kirupa.com/u/martamieta)
#### Post date: [October 30, 2009, 2:22pm UTC](https://forum.kirupa.com/t/as2-photo-gallery-using-flash-and-xml/299143/1 "2009-10-30T14:22:43Z")

</div>

I’ve done tutorial on  
[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)  
and it’s really great. But I have one question.

The size (height and width) of pictures given in example are the same. What to do if each of my image has different size, and I want them be displayed in ‘center’, instead of being aligned to the left.

I am not familiar with as2, but I do understand the syntax and all function, so maybe somebody would have some idea how to do this?

thanks in advance:)

p.s. sorry for my english but I am self-taught :\>
