Greetings,
Using the following function
function scaleFromCenter(ob:*, sx:Number, sy:Number, ptScalePoint:Point) {
var m:Matrix=ob.transform.matrix;
m.tx -= ptScalePoint.x;
m.ty -= ptScalePoint.y;
m.scale(sx, sy);
m.tx += ptScalePoint.x;
m.ty += ptScalePoint.y;
ob.transform.matrix = m;
}
I can scale a movie clip down when moving the slider component thumb to the left by passing the value from the slider component (slider.value) into the sx and sy variables.
Can anyone tell me how to scale back up again when I move the slider to the right?
Thanks!