# Xscale & yscale issues

**URL:** <https://forum.kirupa.com/t/xscale-yscale-issues/295112>\
**Category:** Uncategorized\
**Created:** [August 25, 2009, 2:11pm UTC](https://forum.kirupa.com/t/xscale-yscale-issues/295112 "2009-08-25T14:11:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![njoay](https://avatars.discourse-cdn.com/v4/letter/n/b487fb/32.png) [@njoay](https://forum.kirupa.com/u/njoay)\
**Post date:** [August 25, 2009, 2:11pm UTC](https://forum.kirupa.com/t/xscale-yscale-issues/295112/1 "2009-08-25T14:11:50Z")

</div>

Hi,

I am trying to work on a slideshow which has thumbnails and a main image. The thumbnails and main image are called using xml but for some reason the thumbnails come out stretched and not proportional to its size (120x80). I realize in the AS (below), the obj.\_xscale -= 80; obj.\_yscale -= 80; which can be causing the stretched out thumbnails but no matter how I trouble shoot it the thumbnails still display pixelated. I’ve also tried

obj.\_width = 120;  
obj.\_height = 80;

It still doesn’t work. Please help! Thanks so much!

```auto
var myxml:XML = new XML(); 
myxml.ignoreWhite = true; 
myxml.load("photos.xml"); 
myxml.onLoad = function(success) { 
   if (success) { 
      var c = 0; 
      var miX = 0; 
      var miY = 0; 
      var space = 7; 
      for (var aNode:XMLNode = this.firstChild.firstChild; aNode != null; aNode=aNode.nextSibling) { 
      var obj = thumbs.attachMovie("icono", "icono"+thumbs.getNextHighestDepth(), thumbs.getNextHighestDepth()); 
         obj._xscale -= 80; 
         obj._yscale -= 80; 
         obj._y = miY; 
         if (verticalThumbs) { 
            obj._x = miX+((obj._height+space)*c); 
            obj._rotation = -90; 
            obj._y = obj._width+2; 
         } else { 
            obj._x = miX+((obj._width+space)*c); 
         } 
         var dataNode = aNode.childNodes; 
         var xmlcaption = dataNode[0].toString().replace("<caption>", ""); 
         xmlcaption = xmlcaption.replace("</caption>", ""); 
         obj.caption = xmlcaption; 
         var xmlphoto = dataNode[1].toString().replace("<photo>", ""); 
         xmlphoto = xmlphoto.replace("</photo>", ""); 
         obj.photo = xmlphoto; 
         var xmlthumb = dataNode[2].toString().replace("<thumb>", ""); 
         xmlthumb = xmlthumb.replace("</thumb>", ""); 
         obj.thumb = xmlthumb; 
         listThumbs.push(obj); 
         c++; 
      } 
      if (c != 0) { 
         root.centerThumbs = Math.round(mc_thumbs.group.frame._width/2); 
         selectedIcon(listThumbs[0]); 
      } 
      unloadMovie(root.preload_circle); 
   } else { 
      text = "Error loading xml"; 
   } 
}; 

```
