Dynamically changing flash document dimensions

I’m creating a website that requires full flash. Within the file structure of a main swf there are other swfs being loaded into it (ie different pages). I need to be able to scroll the content of these swfs in the browser window.

So say that the main swf is 800 x 600px and I load the initial page which is 800 x 500 px. This obviously doesn’t need to be scrolled when viewed in the internet broswer. However, when the user clicks to go to another page it might load a page of 800 x 1300 px which is larger than the first and so needs to be scrolled in the internet browser. The main swf in which these pages are loaded into is only 800 x 600 (and even if the HTML dimensions - when put on a webpage - are set to 100%, the swf being loaded into the main swf doesn’t have an impact on the size of the main swf, of which the browser goes by for scrolling.

I could of course just set the size of the main swf to the height of the largest page and have the browser scroll a whole lot of nothing when a smaller page is loaded, but aesthetically its not too great. And since I don’t want the entire page to reload when a user clicks to go to another page I’ve got a problem on my hands

I was thinking of using a script that would dynamically change the html object properties (height value) to the height of the page the user has clicked to go to. With little javascript experience I don’t have a clue where to start. Can anyone help me out?

.- big_fellaaa

Found the answer I was looking for - check this out:
http://www.mustardlab.com/developer/flash/objectresize/

Thats what I used for my site. Take note though, it will not work in IE for mac, or any browser that has js turned off =)