Simple swf comunication

OK. I have an SWF loaded into another. One is sposed’ to declare the _global variable “Closed” as true on its last frame. I wanted the main swf that loads this one to pick this vvariable up and gotoAndPlay(“close”); when this variable is sent back as true. How can I do this?

Thanx in advance.

I tried using a localConnection but it didnt seem to work.

I got

ActionScript Code:
[FONT=Courier New][LEFT]my_lc = [COLOR=#000000]new[/COLOR] [COLOR=#0000ff]LocalConnection[/COLOR]COLOR=#000000[/COLOR];</p>
<p>my_lc.[COLOR=#0000ff]send[/COLOR][COLOR=#000000]([/COLOR][COLOR=#ff0000]"_myLocalConnection"[/COLOR], [COLOR=#ff0000]“recievedValue”[/COLOR], [COLOR=#ff0000]“Close”[/COLOR][COLOR=#000000])[/COLOR];
[/LEFT]
[/FONT]

on My loaded movie’s last frame

and…
[AS]myReceiving_lc = new LocalConnection();
myReceiving_lc.connect("_myLocalConnection");
myReceiving_lc.recievedValue = function(Close) {
gotoAndPlay(“close”);
};[/AS]
on my main movie’s frame where the movie is loaded