[SWFObject] help, can't get expressinstall to work

Phillip K phillipkuo at gmail.com
Mon Jul 24 10:49:55 PDT 2006


HI,

I'm having a problem getting the expressinstall feature working correctly.
When the page is loaded with the embedded flash file, I want the
actionscript to automatically upgrade/install flash 9 without any
interaction required on the users behalf.

I followed the instructions according to the following link:

and entered the code in the first keyframe

---------------------BEGIN actionscript
code---------------------------------------------
#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) {

// this is optional, you could also automatically start the
// upgrade by calling ExpressInstall.init() here instead of the following
lines

// attach the custom upgrade message and center it
var upgradeMsg = attachMovie("upgradeMsg_src", "upgradeMsg", 1);
upgradeMsg._x = Stage.width / 2;
upgradeMsg._y = Stage.height / 2;

// attach the button actions that will start the ExpresInstall updater
upgradeMsg.upgradeBtn.onRelease = function() {
// the ExpressInstall.init() method is what kicks off the actual update
ExpressInstall.init();
}
// if expressinstall is invoked, stop the timeline.
stop();
}
---------------------end actionscript
code---------------------------------------------

In the second keyframe of the example source/so_tester.fla file,  I noticed
there was also the stop action


I have the following working on an html page with a small swf file embedded
in it.
---------------------BEGIN html code --------------------
<div id="flashcontent">
  <a href="http://www.macromedia.com/go/getflashplayer"><imgsrc="images/flash_install.gif"
alt="Get macromedia Flash Player"
style="border: none;" /></a>
 </div>
 <script type="text/javascript">
  // <![CDATA[
  var so = new SWFObject("images/teaser.swf", "teaser", "220", "60", "8.0.22",
"#ffffff",true);
  so.addParam("menu", "false");
  so.write("flashcontent");
  // ]]>
---------------------END html code --------------------


The above works fine with the subsitution of the flash file with the get
flash link but thats not what i'm aiming for.  I want the script to
autoamatically install the latest and greatest version of flash if its not
flash 9.

thanks in advance,

Phill
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20060724/34d200ca/attachment-0004.htm>


More information about the Swfobject mailing list