Anyway of changing the stagesize on a push of a button

firstly, this is my first post, so hello to you all

i am currently creating a website in flash and various pages of the website differ in size, horizontally, to the rest. as a result there is obviously a lot of a blank area. is there any such coding or otherwise that will reduce the stage to the size of the content on it??? i am also going to use animations to transition between the pages when a button is pressed.

you can get a stage to resize according to the web window however I don’t know about on a button press