# Flash.swf vs /server/root.swf - AllowScriptAccess

**URL:** <https://forum.kirupa.com/t/flash-swf-vs-server-root-swf-allowscriptaccess/284939>\
**Category:** flash\
**Created:** [March 25, 2009, 11:19am UTC](https://forum.kirupa.com/t/flash-swf-vs-server-root-swf-allowscriptaccess/284939 "2009-03-25T11:19:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Env](https://avatars.discourse-cdn.com/v4/letter/e/d9b06d/32.png) [@Env](https://forum.kirupa.com/u/Env)\
**Post date:** [March 25, 2009, 11:19am UTC](https://forum.kirupa.com/t/flash-swf-vs-server-root-swf-allowscriptaccess/284939/1 "2009-03-25T11:19:24Z")

</div>

Hello

I have been having this problem for years and what some final solution.

I am currently displaying a flash file on a site. The flash file is called like the following format:

[http://www.site-name.com/advert.swf](http://www.site-name.com/advert.swf)

The problem is that I have recently started creating folders in my site, and decided the best way to do a template based system would be doing virtual\_include() in ASP which is the same as PHP include()

Looks like

```auto
<!--#include file='advert.asp'-->

```

In the page advert.asp, it is the SWF code - alone. The code looks like:

```auto
<script type="text/javascript" src="/ajax/AC_RunActiveContent.js"></script>
<script language="javascript">
	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
			'width', '139',
			'height', '266',
			'src', 'http://www.site-name.com/advert',
			'quality', 'best',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'advert',
			'bgcolor', '#a20c0c',
			'name', 'advert',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'advert',
			'salign', ''
			); //end AC code
	}
</script>
<noscript>
	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="139" height="266" id="what-bag" align="middle">
	<param name="allowScriptAccess" value="sameDomain" />
	<param name="allowFullScreen" value="false" />
	<param name="movie" value="http://www.site-name.com/advert.swf" /><param name="quality" value="best" /><param name="bgcolor" value="#a20c0c" />	<embed src="http://www.site-name.com/advert.swf" quality="best" bgcolor="#a20c0c" width="139" height="266" name="advert" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
	</object>
</noscript> 

```

The problem is it won’t show up on the page and I think it is something to do with AllowScriptAccess or some other usage restriction. Please some help me, once and for all.

:bounce:
