Okay, I know I’m missing something that’s probably very simple.
I’m trying to load an XML file that has it’s location stated in a FlashVar in the HTML.
So here’s wehre I’m loading the XML into my movie:
_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";
}
};
//_global.baseURL = "";
//my_xml.load(_global.baseURL + "slideshow.xml");
//loading xml from html variable
_global.baseURL = "";
my_xml.load(_global.baseURL + xmlFileName);
I have the way I was originally calling the file from Flash commented out above, that worked perfect. Below is my attempt to call it using FlashVars in the HTML.
Her’s the HTML I’m using:
<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>RisngStar</title>
</head>
<body bgcolor="#e0ce8e">
<center>
<div id="flash">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="450"
height="213"
id="RisingStar"
align="top">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="RisingStar.swf" />
<param name="quality" value="high" />
<param name="scale" value="exactfit" />
<param name="salign" value="t" />
<param name="background" value="#ffffff" />
<param name="FlashVars" value="xmlFileName=slideshow.xml" />
<embed src="RisingStar.swf"
quality="high"
scale="exactfit"
salign="t"
background="#ffffff"
FlashVars="xmlFileName=slideshow.xml"
width="450"
height="213"
name="RisingStar"
align="top" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
</center>
</body>
</html>