Input Box

Hey

I have 2 input boxes on the main stage. I have 1 button I have made into a movie clip so the button animation will work. My problem is:
I want it so that when I click on the button and RELEASE it gets the values in those 2 input boxes.

Input boxes have been assigned VAR

on (release) {
if (input1VAR != “” && input2VAR != “”) {
_root.gotoAndPlay(2);
}
else {
_root.gotoAndPlay(3);
}
}

The problem is no matter what it will get the input values from the main stage… Anyone got a solution??

I did not assign an INSTANCE name for the BUTTON(movie clip)