# Possible to call AC\_FL\_RunContent with document.write?

**URL:** https://forum.kirupa.com/t/possible-to-call-ac-fl-runcontent-with-document-write/252193
**Category:** web dev
**Created:** [February 17, 2008, 8:04pm UTC](https://forum.kirupa.com/t/possible-to-call-ac-fl-runcontent-with-document-write/252193 "2008-02-17T20:04:11Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![somnamblst](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somnamblst](https://forum.kirupa.com/u/somnamblst)
#### Post date: [February 17, 2008, 8:04pm UTC](https://forum.kirupa.com/t/possible-to-call-ac-fl-runcontent-with-document-write/252193/1 "2008-02-17T20:04:11Z")

</div>

I have wrapped the Flash generated AC\_FL\_RunContent code around the following which works, but wonder if there is a shorter way to call it

```auto
<script type="text/javascript" language="JavaScript">
            e = canResizeFlash();
            document.write('<object data="movie.swf" width="300" height="274" type="application/x-shockwave-flash">');
            document.write('<param name="movie" value="movie.swf" />');
            document.write('<param name="FlashVars" value="allowResize='+e+'" />');
            document.write('Flash Movie With Resizing Content');
            document.write('<param name="wmode" value="transparent" />');
            document.write('</object>');
        </script>

```
