AS2.0-StopDrag();

Hi All,

I have a window that is dragable, but I want it to stop draging not only on the release but when it hits a certin x and y cord. Here is my function:
function windowDragon()
{
    _root.partners_container_resize.partners_container.vidWin_Panasonic.vidWinheader_panasonic.onPress = function()
    {
        _root.partners_container_resize.partners_container.vidWin_Panasonic.startDrag();
    }
    _root.partners_container_resize.partners_container.vidWin_Panasonic.vidWinheader_panasonic.onRelease = function()
    {
        _root.partners_container_resize.partners_container.vidWin_Panasonic.stopDrag();
    }
}

If any one could point me in the right direction I would be grateful.

Thanks in advance,
neonreel