Having a problem using variables with swfobject.js … what am I doing wrong? trying it two ways here:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>RisingStar</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<script type="text/javascript" src="swfobject.js"></script>
</head>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<div id="flashcontent"><br><br><font color="#ffffff">This site requires Flash Player 7 or greater to function correctly.<br>Please download <a href="http://www.macromedia.com/go/getflash" target="_blank"><font color="#ffffff"><u>HERE</u></font></a></font>
</div>
<script type="text/javascript">
var so = new SWFObject("RisingStar.swf", "RisingStar", "450", "213", "8", "#000000");
so.write("flashcontent");
so.addVariable("xmlFile", "http://147.26.119.171:8081/magnoliaPublic/main2007/rising-stars.xml");
so.addParam("flashvars", "xmlFile=http://147.26.119.171:8081/magnoliaPublic/main2007/rising-stars.xml");
</script>
</script>
</body>
</html>
here’s my AS:
_global.xmlFinishedLoading = false;
my_xml = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function(sucess) {
if (sucess) {
trace ("XML loaded");
_global.xmlStuff = new XML(this);
//gotoAndPlay(2);
} else {
_root.debug.text = "couldn't load XML file";
}
};
//loading xml from html variable
_global.baseURL = "";
my_xml.load(_root.xmlFile);