# Trouble with image positioning in photo gallery

**URL:** https://forum.kirupa.com/t/trouble-with-image-positioning-in-photo-gallery/180143
**Category:** flash
**Created:** [February 26, 2006, 2:17am UTC](https://forum.kirupa.com/t/trouble-with-image-positioning-in-photo-gallery/180143 "2006-02-26T02:17:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JohnnyQuest](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JohnnyQuest](https://forum.kirupa.com/u/JohnnyQuest)
#### Post date: [February 26, 2006, 2:17am UTC](https://forum.kirupa.com/t/trouble-with-image-positioning-in-photo-gallery/180143/1 "2006-02-26T02:17:12Z")

</div>

Hi guys! If it’s not too much trouble, I was wondering if someone could give me a little assistance with figuring out the image gallery posted at [http://www.kirupa.com/developer/mx2004/thumbnails2.htm](http://www.kirupa.com/developer/mx2004/thumbnails2.htm) .

For reference, here is the .fla file I’m working with right now (this is the Flash 8 file):  
[http://www.johnmilesart.com/Sketches/Sketches.fla](http://www.johnmilesart.com/Sketches/Sketches.fla)  
Here’s a version saved for MX 2004:  
[http://www.johnmilesart.com/Sketches/SketchesMX2004.fla](http://www.johnmilesart.com/Sketches/SketchesMX2004.fla)

Here is the associated .xml file:  
[http://www.johnmilesart.com/Sketches/images.xml](http://www.johnmilesart.com/Sketches/images.xml)

And here is the compiled .swf file:  
[http://www.johnmilesart.com/Sketches/Sketches.swf](http://www.johnmilesart.com/Sketches/Sketches.swf)

The images themselves are located under the directory [http://www.johnmilesart.com/Sketches/SketchesImages/](http://www.johnmilesart.com/Sketches/SketchesImages/) . They are gloveandhat.jpg , ladyinhatandglasses.jpg , and newbalance.jpg .

As you will see once you take a look at the .swf, I’m having some trouble getting the images to display zoomed and positioned how I want them. I have a box 500 px in width and 400 px in height set up to display them, and each image has been created at exactly these dimensions to fit perfectly. However, for some reason the images are displaying zoomed in and positioned off-center. I’m sure there’s a relatively easy solution to this problem, but being new to Flash, it’s evading me right now. I’d appreciate it greatly if someone could help me out a bit with this. Also, as you’ll probably notice, I decided to remove the thumbnail navigation aspect, leaving just the next and previous buttons to navigate. If someone could help me remove the leftover thumbnail code to save space, that would be great.

Thanks again!
