Need help with If Else Statement

Hi, I need some help finishing up my flash project. I have been trying for the last 2 days to write and if else statement that will do the following:

  • if they click on the _root.m<>1 it will go to adobe.com if they click on _root.m<>2 they will go to yahoo.com.

-I have 6 _root.m 's

on (release) {
 if (_root.m<>1) {
getURL("http://www.adobe.com","_self");
 }
 else if (_root.m<>2) {
  getURL("http://www.google.com","_self");
}
}

When I test it the url and it opens 2 windows no matter what one is clicked!?!
Can you please help.