Basically, what I'm trying to do is replicate that handy little bottom right corner of windows that are er... not maximized. Whatever the word is, I want the user to be able to grab hold of this corner (bottomRight) and allow them to drag it around and use it to resize the window.
I've gotten the square to stick to the window easily enough, I know how to get it to drag, it's just the math that's throwing me off. Keep in mind that the window can be at any place on the stage.
My problem is:
I want the window to be able to resize according to the position of bottomRight.
Here is my code so far:
Code:
bottomRight.onPress = function() {
_root.window.stopDrag();
bottomRight.startDrag();
_root.window._width = some math thing that I don't know.
_root.window._height = some math thing that resembles the one above this.
}