Function after a global function executes?

Hey all

I have a menu opening from the side, and that function is called openMenu; and it’s _global. When that menu opens, I think it’d be nice to have the open windows slide over with it. My idea so far is to have a function inside each window that goes something like,

x = (this._x + 160) // 160 is the menu width.
y = this._y

when openMenu() executes = function() {
     this.slideTo(x, y, seconds, animType);
}

And then the inverse when closeMenu executes.

How can flash tell when openMenu executes?