тестовый скрипт:

Код:
this.addProperty("is_another_window_opened", function () {
return !new LocalConnection().connect("check_close")
}, null)
//
_root.onMouseUp = function() {
if (this.check_close_lc == undefined) {
trace("another window opened");
this.check_close_lc = new LocalConnection();
this.check_close_lc.connect("check_close");
} else {
trace("another window closed");
delete this.check_close_lc;
}
trace("result: " + this.is_another_window_opened);
};
а в жизни:
в первом окне ролик:

Код:
this.addProperty("is_another_window_opened", function () {
return !new LocalConnection().connect("check_close")
}, null)
во втором окне ролик:

Код:
this.check_close_lc = new LocalConnection();
this.check_close_lc.connect("check_close");
дальнейшие действия зависят от того, как быстро тебе нужно узнать о закрытии окна.
Можно в главном мувике интервалом чекать:

Код:
this.setCheckOpenedInterval = function() {
var opened = _root.is_another_window_opened;
setInterval(function () {
if (_root.is_another_window_opened != opened) {
opened = _root.is_another_window_opened;
trace("window > "+(opened ? "opened" : "closed"));
}
}, 20);
};
this.setCheckOpenedInterval();