I used the same code and added a work-around for the refresh/redraw issue.

[swf width=550 height=400 background=#FFFFFF]http://www.triadis.net/public/flash5/alex_windows_refreshfix.swf[/swf]

Now they swap positions fine. They just don't behave the same way as yours. It works though

The FLA:
http://www.triadis.net/public/flash5...refreshfix.fla