# Help!Photo Gallery Using XML and Flash

**URL:** https://forum.kirupa.com/t/help-photo-gallery-using-xml-and-flash/289073
**Category:** Uncategorized
**Created:** [May 26, 2009, 2:51am UTC](https://forum.kirupa.com/t/help-photo-gallery-using-xml-and-flash/289073 "2009-05-26T02:51:26Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![shinkawa](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@shinkawa](https://forum.kirupa.com/u/shinkawa)
#### Post date: [May 26, 2009, 2:51am UTC](https://forum.kirupa.com/t/help-photo-gallery-using-xml-and-flash/289073/1 "2009-05-26T02:51:26Z")

</div>

Hi, i’m new in action scripting

i recently did a flash web with this tutorial [http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)

the problem is, i cant auto align the image into center of the stage. the tutorial only did for 1 size image. but i got 2 different size image which make 1 of the size not in center.

can anybody add the script for me?Thanks
