I'd like to set a variable on a button click in the main movie and be able to pass that variable's new set value to the loaded movie for evaluation there.

This is what I did in the main movie...

on (release) {
loadMovieNum ("profileinterface.swf", 2);
}
on (release) {
selection = "1";
}


and the evaluation of it in the loaded movie...

if (selection = 1) {
gotoAndPlay (1);
} else if (selection = 2) {
gotoAndPlay ("bigpicture");
} else {
gotoAndPlay ("phil");
}


something isn't working....Can a loaded movie read a variable set in another movie?

any help would be appreciated!!