Actionscript Code:
onClipEvent(load){
    this.w = this._width;
    this.h = this._height;
    this.w2 = this._width + 50;
    this.h2 = this._height + 50;
}

on(press){
    startDrag(this, true);
}

on(release){
    if(this._width < this.w2){
        this._width = this.w2;
        this._height = this.h2;
    }
    stopDrag();
}