Detecting if browser changes size?

Is there a way to read the current size of the browser window in which a flash movie is embedded?