Does anyone know how to resize an item (a vector square or such) on drag? In other words, I want to click a side and drag that side having it resize. Sort of like WACK (http://products.coma2.de/wack/index.php).
THANKS!!!
Does anyone know how to resize an item (a vector square or such) on drag? In other words, I want to click a side and drag that side having it resize. Sort of like WACK (http://products.coma2.de/wack/index.php).
THANKS!!!
Ok, I’m getting somewhere…
draggerShell.onPress = function(){
startDrag(this,false);
this.onMouseMove = function() {
if(draggerShell._x > holder._x){
box._width += 10;
holder._x += 2;
}
else if (draggerShell._x < holder._x){
box._width -= 10;
holder._x -= 2;
}
if(draggerShell._y > holder._y){
box._height += 10;
holder._y += 2;
}
else if (draggerShell._y < holder._y){
box._height -= 10;
holder._y -= 2;
}
}
}
draggerShell.onMouseUp = function() {
holder._x = draggerShell._x;
holder._y = draggerShell._y;
stopDrag();
delete this.onMouseMove;
}
However, this doesn’t seem to be a practical way of resizing a square
:: Copyright KIRUPA 2024 //--