# Why is this pixelatd

**URL:** https://forum.kirupa.com/t/why-is-this-pixelatd/193963
**Category:** flash
**Created:** [July 19, 2006, 4:36pm UTC](https://forum.kirupa.com/t/why-is-this-pixelatd/193963 "2006-07-19T16:36:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![xtinarox26](https://avatars.discourse-cdn.com/v4/letter/x/f14d63/32.png) [@xtinarox26](https://forum.kirupa.com/u/xtinarox26)
#### Post date: [July 19, 2006, 4:36pm UTC](https://forum.kirupa.com/t/why-is-this-pixelatd/193963/1 "2006-07-19T16:36:12Z")

</div>

iT LOOKS fine in flash…once i test movie…  
its horrible…i tried .jpeg…and i changed the property settings to 100. I tried a png…which is what you see now. Do you think it has to do w/ the code for my map zoom?

gracias!

[![](http://img343.imageshack.us/img343/3263/pixeluv1.th.jpg)](http://img343.imageshack.us/my.php?image=pixeluv1.jpg)

```auto
onClipEvent(load){
 scrollMin = _root.range._y-_root.range._height // minimum _y value possiible for scrollbar
 scrollMax = _root.range._y // maximum _y value possiible for scrollbar
 lowestScale = 50 // lowest desired scale of map in %
 highestScale = 300 // highest desired scale of map in %
 _y = scrollMin + (scrollMax - scrollMin)/2 // sets starting position of scrollbar (currently half-way)
 
 scaleFactor = Math.pow(highestScale/lowestScale,1/(scrollMax-scrollMin)) // variable for SetScale
 function SetScale(){
  // calculates scale and sets it
  _root.scale = _root.map._xscale = _root.map._yscale = lowestScale * Math.pow(scaleFactor,(scrollMax-_y))
 }
 SetScale()
}
onClipEvent(mouseMove){
 if (dragging){
  _y = Math.min(Math.max(_parent._ymouse,scrollMin),scrollMax)
  SetScale()
  updateAfterEvent();
 }
}

```
