# Xscale and yscale / jpeg quality

**URL:** <https://forum.kirupa.com/t/xscale-and-yscale-jpeg-quality/254452>\
**Category:** Uncategorized\
**Created:** [March 12, 2008, 10:04am UTC](https://forum.kirupa.com/t/xscale-and-yscale-jpeg-quality/254452 "2008-03-12T10:04:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fabrice](https://avatars.discourse-cdn.com/v4/letter/f/5fc32e/32.png) [@fabrice](https://forum.kirupa.com/u/fabrice)\
**Post date:** [March 12, 2008, 10:04am UTC](https://forum.kirupa.com/t/xscale-and-yscale-jpeg-quality/254452/1 "2008-03-12T10:04:24Z")

</div>

Hey all,  
I am building up a simple zoom in zoom out on an externally loaded picture.  
When I load the picture without applying any .\_xscale and .\_yscale to it, the resolution is fine but when I use the .\_xscale and .yscale to the movieclip it is in, it blurs the image.  
I don’t get it.  
I am posting bits of the code in case you are curious.  
Thanks for your help.  
Fabrice

//gets the info for choosing the right pix  
mepixVar = new LoadVars();  
mepixVar.load(“indic.txt”);  
//loads  
mepixVar.onLoad = function() {  
z = mepixVar.pixRef;  
this.pathToPics = “”;  
loadMovie(this.pathToPics+z, \_root.photo.loader.recip);  
\_root.photo.loader.recip.\_quality = “BEST”;  
};  
//code for zoom in and out  
slider.onEnterFrame = function() {  
x = ((slider.cursor.\_x)-40)\*(0.66)+50;  
\_root.photo.\_xscale = x;  
\_root.photo.\_yscale = x;  
};  
stop();
