Also are you referring to a swf embedded in your template ? I just did this yesterday embedding a flash header that rotates images according to an XML file.
The previous post is correct about using the relative path to the XML file, I just go all the way and use the full URL...
also if you don't want to specify the XML file in the flash file itself what I did(and usually do) is attach the XML location as a variable at the end of the URL
so in the action script(AS2) it'd look something like this:
//Check if the GET parameter XMLfile is set, if not use a default file
if(_root.XMLfile==undefined || _root.XMLfile==""){
_root.XMLfile="whatever.xml";
and your embed tag in the ASCX would look something like this:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="800" height="250" id="main_banner" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="http://mysite.com/main_banner.swf?XMLfile=http://mysite.com/main_banner.xml" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="http://mysite.com/main_banner.swf?XMLfile=http://mysite.com/main_banner.xml" quality="high" bgcolor="#ffffff" width="800" height="250" name="main_banner" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />embed>
object>