If Condition asking for two variables to be set

for i know that i often fail :blush:when it comes to syntax, i thought i might ask how the syntax would be if i’d want to ask if two variables are set.
say i’d want to let things happen if the variables _root.move==1 and at the same time _root.window==0. :h:

in this piece of code:

onClipEvent (enterFrame) {
if (_root.move == 1) {
if (_root.mainVarX == 0) {

    homeX = (-_root._xmouse*1)+328;
    homeY = (-_root._ymouse*1)+400;
   
} else {
    
homeX = (-_root.mainVarX);
homeY = (-_root.mainVarY);
    
}

thisX = _x;
thisY = _y;
diffX = homeX-thisX;
diffY = homeY-thisY;

if (_root.mainVarX == 0) {
    moveX = diffX/10;
    moveY = diffY/10;
} else {
    moveX = diffX/10;
    moveY = diffY/10;
}

    _y = thisY+moveY;
    _x = thisX+moveX;

}
}

my problem is, that i let something scroll in front of a button on mouse release, and flash now thinks that i left the button and thinks it should fire up stuff that should happen on rollout, which shouldn’t when i mouse release on the button.

thanks for your help. i figured, i better ask before i go mad for two days :stuck_out_tongue_winking_eye: