Dynamically change .swf object height

Hi all

I am wanting to dynamically change the height of my .swf file at runtime using as3, much like this site http://www.uniqlo.com/us/explorer.html

I’ve done a little research, and I believe the answer lies in accessing the container that the .swf object is in in the HTML file.
However, I am just starting to learn HTML/Java so I have no idea how to go about doing this from within flash.
Ideally I would like to end up with a method I can call from within flash i.e.
stageResize = 3000;

If anyone could help I would really appreciate it.