al clip ke devi istanziare "mc"
codice:
onClipEvent(load){
_root.xinit=this._height;
_root.yinit=this._width;
_root.xpos=this._x;
_root.ypos=this._y;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.PGUP)) {
this._height = _height+10;
this._width = _width+10;
} else if (Key.isDown(Key.PGDN)) {
this._height = _height-10;
this._width = _width-10;
}
}
on(press){
startDrag(this);
}
on(release){
stopDrag()
}
al pulsante ke riporta alle dimensioni di partenza
codice:
on(release){
_root.mc._y=_root.ypos;
_root.mc._x=_root.xpos;
_root.mc._height=_root.yinit;
_root.mc._width=_root.xinit;
}