<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV>I believe that the most 'idiot-proof' method would be:</DIV>
<DIV> </DIV>
<DIV>// first frame of movie</DIV>
<DIV>#include "expressinstall.as"<BR>var ExpressInstall = new
ExpressInstall();<BR>if (ExpressInstall.needsUpdate)
{<BR> ExpressInstall.init();<BR> stop();<BR>}</DIV>
<DIV>/////// end of express install check on first frame of movie</DIV>
<DIV> </DIV>
<DIV>If you are testing for version 9, your html code should be:</DIV>
<DIV> var so = new SWFObject("images/teaser.swf", "teaser", "220",
"60", "9", "#ffffff",true); </DIV>
<DIV> </DIV>
<DIV>The code you showed, tested for version 8.0.22:</DIV>
<DIV> var so = new SWFObject("images/teaser.swf", "teaser", "220",
"60", "8.0.22", "#ffffff",true); <BR><BR>However . . . this is still not
'without any interaction required on the users behalf' - afaik, there must
always be user intervention, clicking on the 'upgrade now' button. But they will
install the latest version, and then be returned to your page.</DIV>
<DIV>jimbo</DIV>
<DIV><BR><FONT face=Arial size=2>*********** REPLY SEPARATOR
***********<BR><BR>On 7/24/2006 at 12:49 PM Phillip K wrote:</FONT></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid">
<DIV>HI, </DIV>
<DIV> </DIV>
<DIV>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. </DIV>
<DIV> </DIV>
<DIV>I followed the instructions according to the following link: </DIV>
<DIV> </DIV>
<DIV>and entered the code in the first keyframe </DIV>
<DIV> </DIV>
<DIV>---------------------BEGIN actionscript
code---------------------------------------------</DIV>
<DIV>#include "<A
href="http://expressinstall.as">expressinstall.as</A>"<BR><BR>// initialize
the ExpressInstall object<BR>var ExpressInstall = new
ExpressInstall();<BR><BR>// if the user needs to upgrade, show the 'start
upgrade' button <BR>if (ExpressInstall.needsUpdate) {<BR><BR>// this is
optional, you could also automatically start the <BR>// upgrade by calling
ExpressInstall.init() here instead of the following lines<BR><BR>// attach the
custom upgrade message and center it <BR>var upgradeMsg =
attachMovie("upgradeMsg_src", "upgradeMsg", 1);<BR>upgradeMsg._x = Stage.width
/ 2;<BR>upgradeMsg._y = Stage.height / 2;<BR><BR>// attach the button actions
that will start the ExpresInstall updater <BR>upgradeMsg.upgradeBtn.onRelease
= function() {<BR>// the ExpressInstall.init() method is what kicks off the
actual update<BR>ExpressInstall.init();<BR>}<BR>// if expressinstall is
invoked, stop the timeline.<BR>stop(); <BR>}</DIV>
<DIV>---------------------end actionscript
code---------------------------------------------</DIV>
<DIV> </DIV>
<DIV>In the second keyframe of the example source/so_tester.fla
file, I noticed there was also the stop action</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>I have the following working on an html page with a small swf file
embedded in it. </DIV>
<DIV>---------------------BEGIN html code --------------------</DIV>
<DIV><div id="flashcontent"><BR> <a href="<A
href='http://www.macromedia.com/go/getflashplayer"><img'>http://www.macromedia.com/go/getflashplayer"><img</A>
src="images/flash_install.gif" alt="Get macromedia Flash Player"
style="border: none;" /></a> <BR> </div></DIV>
<DIV> <script type="text/javascript"><BR> //
<![CDATA[<BR> var so = new SWFObject("images/teaser.swf",
"teaser", "220", "60", "8.0.22", "#ffffff",true);
<BR> so.addParam("menu", "false");
<BR> so.write("flashcontent");<BR> // ]]></DIV>
<DIV>---------------------END html code --------------------</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>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. </DIV>
<DIV> </DIV>
<DIV>thanks in advance, </DIV>
<DIV> </DIV>
<DIV>Phill </DIV></BLOCKQUOTE></BODY></HTML>