Drage & Drop - Dynamic Area!

Hi,

I was working on a website with a draggable menu, when I saw a post about full screen flash website. (See the third code) My menu used to have an area defined like this:

menu.onPress = function() {
    startDrag(this,false, 0, 0, 700, 600)
}

Then after I tried to turn my initial website into a FullScreen flash website, I realised the draggable area had to be constantly updated. I tried this but in vain:

menu.onPress = function() {
     startDrag(this,false, Stage.width, Stage.height, Stage.width-Stage.width, Stage.height-Stage.height)
 }

Any idea of how this could be done?

The code was from the guys on this thread:


and looked something like this

//stage properties
Stage.align = "TL";
Stage.scaleMode = "noScale";

//set initial positions
backoverlay._height = Stage.height;
backoverlay._width = Stage.width;
backoverlay._x = 0;
backoverlay._y = 0;
contentbox._x = Stage.width/2;
contentbox._y = Stage.height/2;

// end initial position setting

//creates a listener that checks to see if the browser window is resized
sizeListener = new Object();
sizeListener.onResize = function() {
// change movieclip properties when the window is resized.
backoverlay._height = Stage.height;
backoverlay._width = Stage.width;
contentbox._x = Stage.width/2;
contentbox_y = Stage.height/2;
};

Stage.addListener(sizeListener);
}