[SWFObject] express install not working
Steve Norris
snorris at norrisoft.com
Tue May 2 12:15:47 PDT 2006
Hi Geoff,
I combined your FlashObject code with an existing .js file
of mine as follows and it works beautifully:
HTML code:
<div id="NorrisoftEnhanceLoader"
name="NorrisoftEnhanceLoader" style="position:absolute;
width:2880px;height:2880px; z-index:99; left: 0px; top:
0px; visibility: visible;">
<script type="text/javascript"
src="EnhanceFolder/enhanceJS.js"></script>
<script
type="text/javascript">if(document.browserOK){try{EnhanceLoaderObject.addVariable("projectXMLFile",
"EnhanceFolder/i7_Applying_ForEnhanceInventory/inventory.xml")}catch
(e) {};
try{EnhanceLoaderObject.write("NorrisoftEnhanceLoader")}catch
(e)
{}}else{NorrisoftEnhanceLoader.style.visibility="hidden"};</script></body>
JS file:
var EnhanceLoaderObject = new
FlashObject("EnhanceFolder/EnhanceLoader.swf",
"EnhanceLoader", "2880", "2880", "7", "#FFFFFF");
EnhanceLoaderObject.addParam("wmode", "transparent");
Like I said, everything works beautifully - my .swf
displays nicely. However, when I try to use autoinstall by
inserting a blank keyframe before my first frame of my
.swf and adding the following:
#include "expressinstall.as"
// initialize the ExpressInstall object
var ExpressInstall = new ExpressInstall();
// if the user needs to upgrade, show the 'start upgrade'
button
if (ExpressInstall.needsUpdate) {
ExpressInstall.init();
stop();
}
and changing the Flash Object instantiation to:
("EnhanceFolder/EnhanceLoader.swf", "EnhanceLoader",
"2880", "2880", "7", "#FFFFFF", true);
Auto install doesn't work.
TIA,
Steve
More information about the Swfobject
mailing list