# Embed issue with a Resize catch

**URL:** <https://forum.kirupa.com/t/embed-issue-with-a-resize-catch/190267>\
**Category:** flash\
**Created:** [June 9, 2006, 8:56pm UTC](https://forum.kirupa.com/t/embed-issue-with-a-resize-catch/190267 "2006-06-09T20:56:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![final\_end](https://avatars.discourse-cdn.com/v4/letter/f/da6949/32.png) [@final\_end](https://forum.kirupa.com/u/final_end)\
**Post date:** [June 9, 2006, 8:56pm UTC](https://forum.kirupa.com/t/embed-issue-with-a-resize-catch/190267/1 "2006-06-09T20:56:21Z")

</div>

Im trying to combine the workaround code for embedding in IE with this

```auto
  <div id="flashid" style="width:400px; height:300px;">
    <script type="text/javascript">
      e = canResizeFlash();
      document.write('<object data="resize.swf" width="100%" height="100%" type="application/x-shockwave-flash">');
      document.write(' <param name="movie" value="drDan0606.swf" />');
      document.write(' <param name="FlashVars" value="allowResize='+e+'" />');
      document.write(' Flash Movie With Resizing Content');
      document.write('</object>');
    </script>

```

Kirupa’s embed fix script:

```auto
<script type="text/javascript" src="flashobject.js"></script>

<div id="flashcontent" style="width: 100%px; height: 100%px"></div>

<script type="text/javascript">
var fo = new FlashObject("drDan0606.swf", "animationName", "100%", "100%", "8", "#FFFFFF");
fo.addParam("allowScriptAccess", "sameDomain");
fo.addParam("quality", "high");
fo.addParam("scale", "noscale");
fo.addParam("loop", "false");
fo.write("flashcontent");
</script>

```

And im not well versed enough in java to combine this into Kirupa’s embed fix script.

The reason i want to do this, is to make IE happy, the site displays correctly in all other browsers except IE for many people. I didn’t do the layouts i just made it into Flash.[This is it right now](http://www.richbuyer.com/drdan), and it should work correctly on every browser except IE.

Any help is very appreciated.  
Thanks.  
peace.
