Yes, there's a parameter you can add to the SWFObject script
on your
HTML page - the xiRedirectUrl. See this example on the
SWFObject site:
<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "200", "100",
"8",
"#336699", true);
so.setAttribute('xiRedirectUrl',
'
http://www.example.com/upgradefinished.html');
// must be the absolute
URL to your site
so.write("flashcontent");
</script>
blueprnt wrote:
> Ok looking into it I can simply test for flash 8 and
redirect for yes to
> flashsite.html and no to noflash.html. so the
redirection isn't a problem. What
> I want to do is on the noflash.html site is to use the
expressinstaller but get
> it to redirect to www.mysite/flashsite.html when it
reopens the browser. Any
> help appreciated BP
>
Well this is what I did, don't know if it is right but here
it is....
Step 1 put the 2 frames from (
http://blog.deconcept.com/swfobject/
)swfobject_1.4\source\so_tester .fla into the first two frames of
my flash project.
Step 2 Using the swfobject_1.4\fullpage.html I modified it
to be this below
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0014)about:internet -->
<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>Total Blueprint for World
Domination</title>
<!-- SWFObject embed by Geoff Stearns geoff@deconcept.com
http://blog.deconcept.com/swfobject/
-->
<script type="text/javascript"
src="swfobject.js"></script>
<style type="text/css">
/* hide from ie on mac \*/
html {
height: 100%;
overflow: hidden;
}
#flashcontent {
height: 100%;
}
/* end hide */
body {
height: 100%;
margin: 0;
padding: 0;
background-color: #000000;
}
}
.style1 {color: #FFFFFF}
body,td,th {
color: #FFFFFF;
}
a:link {
color: #CCCCCC;
}
a:visited {
color: #999999;
}
</style>
</head>
<body>
<div id="flashcontent">
<div align="center">
<p align="center" class="style1"><strong>You
need to upgrade to Flash 8 Player to really appriciate this
site</strong></p>
<p align="center" class="style1">This Flash movie
requres a newer version of the Flash plugin.</p>
<p align="center" class="style1">Please click <span
class="style2 style1"><a href="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Start
Upgrade</a></span> to upgrade your Flash
plugin.</p>
<p align="center" class="style2 style1"><span
class="style1">Thanks from the team @<br />
Total Blueprint </span></p>
<p align="center" class="style1"> or click <a
href="home.htm?detectflash=false">here</a> to visit our
old web site
<script type="text/javascript">// <![CDATA[
var so = new SWFObject("Total_blueprint_web.swf", "Total
Blueprint for World Domination", "100%", "100%", "8.0.23",
"#000000", true);
so.addVariable("flashVarText", "this is passed in via
FlashVars"); // this line is optional, but this example uses the
variable and displays this text inside the flash movie
// this is where you get redirected after the update is
compleated
so.setAttribute('xiRedirectUrl','
http://www.totalblueprint.com/flashsite.htm');
// must be the absolute URL to your site
so.write("flashcontent");
// ]]>
</script>
<p align="center" class="style1" style="clear:
both;margin-left: 20px"> </p>
</body>
</html>
Step 3 added the swfobject. JScript Script File to my site
and tested and it works.
I tested it by removing flash player from my system and
running the html and it came up fine, next I installed flash 7 and
ran the html file and we had the option of upgrading and it
upgraded me and redirected me back to my site.
Thanks for your help ImagicDigital
BP
