# I'm using js to resize flash, how to get rid of activate when click

**URL:** <https://forum.kirupa.com/t/im-using-js-to-resize-flash-how-to-get-rid-of-activate-when-click/239130>\
**Category:** flash\
**Created:** [September 18, 2007, 10:33pm UTC](https://forum.kirupa.com/t/im-using-js-to-resize-flash-how-to-get-rid-of-activate-when-click/239130 "2007-09-18T22:33:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![forumg](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/forumg/32/3953_2.png) [@forumg](https://forum.kirupa.com/u/forumg)\
**Post date:** [September 18, 2007, 10:33pm UTC](https://forum.kirupa.com/t/im-using-js-to-resize-flash-how-to-get-rid-of-activate-when-click/239130/1 "2007-09-18T22:33:16Z")

</div>

Hi, i am using the code down here to be able to resize swf dynamically but now [COLOR=black]_how can i get rid of ie click to activate problem?_[/COLOR] I was using the one line jscript which is mentioned on forum before but now i couldn’t apply it to here. I am not good at js. Anyone out for help?  
Thanks alot.😊

```auto
 
<div align="center">
 <div id="flashid" style="width:1000px; height:800px;">
  <script type="text/javascript" language="JavaScript">
   e = canResizeFlash();
   document.write('<object data="vakif_v02.swf" width="100%" height="100%" type="application/x-shockwave-flash">');
   document.write('<param name="movie" value="vakif_v02.swf" />');
   document.write('<param name="allowScriptAccess" value="always" />');
   document.write('<param name="FlashVars" value="allowResize='+e+'" />');
   document.write('Flash Movie With Resizing Content');
   document.write('</object>');
  </script>
  <noscript>Javascript must be enabled to view Flash movie</noscript>
 </div>
</div> 

```
