Scale as long as mouse is pressed?

Hello,

I’d like to scale a MC depending on the action of the mouse:
if you press and move the mouse up, the MC scales down and the contrary…
Any idea on how to do that??

I started with


onClipEvent (enterFrame) {
	this.onMouseDown = function() {
		this.onMouseMove = function() {
			if (_root._ymouse<prevposy) {
				this._xscale = this._yscale += 20;
			}
		};
	};
(...)

But it just does it as i pressed, and i wanna “drag scale”…
TiA :slight_smile: