Passing application root path in FlashVars
<script language="JavaScript" type="text/javascript">
.....
AC_FL_RunContent(
.....
'salign', '',
'FlashVars', 'rootPath=<%=AppPath%>' // <-- INSERT THIS LINE
); //end AC code
.....
</script>
var XMLFILE = "/admin/temp/calendar.xml";
// See if rootPath parameter (FlashVars) is passed
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
var rootPath: String = paramObj["rootPath"];
if(rootPath != null)
{
if(rootPath.substr(rootPath.length-1, 1)=='/')
rootPath = rootPath.substr(0,rootPath.length-1); // Exclude slash
XMLFILE = rootPath + XMLFILE;
}