Variable Trouble

hello hello.
i was wondering if i set a variable on a button (the button is on level 5)

_level5.current_selection = "credits"

and i would like the movie on level 1 to recognize that this button (on level 5)has been pressed,
is this script correct on an empty keyframe in level 1.

_level5.current_selection = "credits";
if (_level5.current_selection == "credits") {
    loadMovieNum("credits.swf", 2);
} else {
    _level5.current_selection = "credits";

i’ve tried this and it isn’t recognizing the variable.
please help. thanks