There are tons of example explaining how to zoom/pan a single movieclip, but im looking for a way to zoom AND pan multiple movieclips.
So far ive been able to zoom or pan, but not both at the same time.
Im using this for the zooming and works perfectly. But how can i let the movieclips pan properly with a maximum pan?
public function zoom(action:String) {
var zoomType:Number;
var scaleType:Number;
if(action == "in"){
zoomType = 1.01;
scaleType = 0.99;
zoomed += 0.01;
} else if(action == "out"){
zoomType = 0.99;
scaleType = 1.01;
zoomed -= 0.01;
}
for (var i:int = 0; itemArray.length >i; i++) {
itemArray*.x = mouseX - ((mouseX - itemArray*.x) * zoomType);
itemArray*.y = mouseY - ((mouseY - itemArray*.y) * zoomType);
itemArray*.scaleX /=scaleType;
itemArray*.scaleY /= scaleType;
}