# Move movement + movie quality

**URL:** <https://forum.kirupa.com/t/move-movement-movie-quality/192619>\
**Category:** Uncategorized\
**Created:** [June 29, 2006, 8:01pm UTC](https://forum.kirupa.com/t/move-movement-movie-quality/192619 "2006-06-29T20:01:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jtack526](https://avatars.discourse-cdn.com/v4/letter/j/b9e5f3/32.png) [@jtack526](https://forum.kirupa.com/u/jtack526)\
**Post date:** [June 29, 2006, 8:01pm UTC](https://forum.kirupa.com/t/move-movement-movie-quality/192619/1 "2006-06-29T20:01:41Z")

</div>

Hey I was wondering if anyone had any ideas on how to solve this problem:

I need to have the quality of my swf determined by whether or not the user is moving the mouse. I have a free form navigation, and when i have scrolling going on i want the huge movieclip(image\_mc) to have a LOW quality, and then when the mouse isn’t moving (the movieclip isn’t either) i need a HIGH quality. here is what i have so far…

//--------------------------  
//Idle Detection  
//--------------------------  
checkX = function (dx, oldVal, newVal) {  
if (oldVal\<newVal) {  
image\_mc.\_quality = “LOW”;  
} else if (oldVal\>newVal) {  
image\_mc.\_quality = “LOW”;  
}  
return newVal;  
};  
checkY = function (dy, oldVal, newVal) {  
if (oldVal\<newVal) {  
image\_mc.\_quality = “LOW”;  
} else if (oldVal\>newVal) {  
image\_mc.\_quality = “LOW”;  
}  
return newVal;  
};  
this.watch(“xdir”, checkX);  
this.watch(“ydir”, checkY);  
this.onMouseMove = function() {  
xdir = \_xmouse;  
ydir = \_ymouse;  
};

I got this online somewhere and updated for what I need but I can’t get it to change back to HIGH no matter what code I try.  
If anyone could help that would be awesome.

Thanks,

jtack526
