Float a MC in the center, all the time

Hi there,

im having loads of difficulty with a really simple piece of actionscript.
I’ve actually build something similar to this before, but im totally lost as to how I did it last time.

Basically, I have a site im working on, and its a liquid style flash site, where, when the browser is resized, so is the content/layout. As part of the project, when the content expands/contracts I want the main movie clip to remain in the middle. eg. if some new content gets displayed on the left of the clip, move the master clip along so its always centered. hmmm… little hard to explain in english, so i’ve attached a fla file…

I’ve got pretty much all the code working, but for some reason, it just isn’t accurate… its doing something though, which makes my head hurt even more… and just to totally throw a spanner in the works, when you resize the player, the calculations go totally way off :frowning:

any help would be greatly appreciated.

Cheers :jail: