     }
 
     private var widgetMoveStarted:Boolean = false;
+    private var xResizeStart:Number;
+    private var yResizeStart:Number;
+    private var xResizeEnd:Number;
+    private var yResizeEnd:Number;
 
     private function mouse_moveHandler(event:MouseEvent):void
     {


        if ((stage.mouseX < stage.width - 20) && (stage.mouseY < stage.height - 20))
        {
            if ((stage.mouseX - parent.x) > minimumResizeWidth)
            {                 
                width = (stage.mouseX - (stage.stageWidth - parent.parent.width + parent.x));
            }
            if ((stage.mouseY - parent.y) > minimumResizeHeight)
            {
                height = (stage.mouseY - parent.y);
            }
        }
    }

    {
        if (_resizable)
        {
            xResizeStart = event.stageX
            yResizeStart = event.stageY;

            /*TODO: for now, it can't be resized when is not basic layout*/
            stage.addEventListener(MouseEvent.MOUSE_MOVE, resize_moveHandler);
            stage.addEventListener(MouseEvent.MOUSE_UP, resize_upHandler);
