# Dynamically changing swf object size

**URL:** <https://forum.kirupa.com/t/dynamically-changing-swf-object-size/222543>\
**Category:** Uncategorized\
**Created:** [April 14, 2007, 4:40pm UTC](https://forum.kirupa.com/t/dynamically-changing-swf-object-size/222543 "2007-04-14T16:40:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pottu](https://avatars.discourse-cdn.com/v4/letter/p/ccd318/32.png) [@Pottu](https://forum.kirupa.com/u/Pottu)\
**Post date:** [April 14, 2007, 4:40pm UTC](https://forum.kirupa.com/t/dynamically-changing-swf-object-size/222543/1 "2007-04-14T16:40:18Z")

</div>

Hi all!  
Im trying to change the swf object size during runtime.  
What im doing is im calling a function in flash getURL(“javascript:Resize(‘growbar’,3000);”);

And in the html page is this function:  
\<script type=“text/javascript”\>  
function Resize(ID,number) {  
document.getElementById(ID).height=number;  
}  
\</script\>

But i dont get it to work, especially because im using the adobes IE “click here to activate” fixscript (AC\_FL\_RunContent). So i cant get to the swf objects id. Any suggestions?
