Passing and "getting" a variable in actionscript?

i am trying to make a button dynamic…

sectionName is the variable (duh).

on (release) {
“photos_” + sectionName + “_mc”.gotoAndPlay(“play”);
}

is this possible?

thanks-a-ton!!!