here is what i have on a button and was wondering what would be the best efficient way to write the same:

please help.

//thenumber and thestyle are two variables.

on (release) {

if ((thenumber == 1) && (thestyle == 1)) {

loadMovie(“1.swf”, 1);

} else if ((thenumber == 1) && (thestyle == 2)) {

loadMovie(“2.swf”, 1);

} else if ((thenumber == 1) && (thestyle == 3)) {

loadMovie(“3.swf”, 1);

} else if ((thenumber == 2) && (thestyle == 1)) {

loadMovie(“4.swf”, 1);

} else if ((thenumber == 2) && (thestyle == 2)) {

loadMovie(“5.swf”, 1);

} else if ((thenumber == 2) && (thestyle == 3)) {

loadMovie(“6.swf”, 1);

} else if ((thenumber == 3) && (thestyle == 1)) {

loadMovie(“7.swf”, 1);

} else if ((thenumber == 3) && (thestyle == 2)) {

loadMovie(“8.swf”, 1);

} else if ((thenumber == 3) && (thestyle == 3)) {

loadMovie(“9.swf”, 1);

} else if ((thenumber == 4) && (thestyle == 1)) {

loadMovie(“10.swf”, 1);

} else if ((thenumber == 4) && (thestyle == 2)) {

loadMovie(“11.swf”, 1);

} else if ((thenumber == 4) && (thestyle == 3)) {

loadMovie(“12.swf”, 1);

} else if ((thenumber == 5) && (thestyle == 1)) {

loadMovie(“13swf”, 1);

} else if ((thenumber == 5) && (thestyle == 2)) {

loadMovie(“14.swf”, 1);

} else if ((thenumber == 5) && (thestyle == 3)) {

loadMovie(“15.swf”, 1);

}

}