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

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

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

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

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

<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: