Changing variable in a different swf?

I want to change a variable with a button from my main movie in a swf loaded in level 2. The following code obviously does it for the same swf but how do I target the swf in level2??:

on (release) {
_root.test = 10;
}

Cheers!!