# Help with editing AS2 from a tutorial

**URL:** https://forum.kirupa.com/t/help-with-editing-as2-from-a-tutorial/288079
**Category:** flash
**Created:** [May 11, 2009, 1:10am UTC](https://forum.kirupa.com/t/help-with-editing-as2-from-a-tutorial/288079 "2009-05-11T01:10:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![spinmunky](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@spinmunky](https://forum.kirupa.com/u/spinmunky)
#### Post date: [May 11, 2009, 1:10am UTC](https://forum.kirupa.com/t/help-with-editing-as2-from-a-tutorial/288079/1 "2009-05-11T01:10:54Z")

</div>

I was using this tutorial:  
[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)  
and I was wondering if there’s a way to make the image appear with it’s middle aligned with the empty movie clip instead of the upper left hand corner.  
I’m learning action script and i think i know how to do it, I just don’t know how to implement it in the code.  
I was thinking that you could have it find out the width and height of the image and divide each of those by two and have it appear at those coordinates on the empty movie clip.

P.S. Sorry if this is the wrong forum, I couldn’t find a Q&A one.
