Flash Background and Flash Movie in the same html page

This is an issue based on what I saw in a few pages, for example in vodafonejourney.com: a page that has as background a Flash movie and as content another Flash movie.
As a matter of fach, there is only one movie containing the other, but the nice thing is that the background scales to fit entirely the browser window, even when resizing it, and the content movie has always the same size and “accomodates” to the center of the background movie.
I believe this is done using Javascript to pass to the background movie the current size of the browser window so it can dynamically adjust its size and center the content movie. But never found a usable code to get this nice effect.