Skip to main content
Inspiring
May 13, 2006
Answered

Player detection confusion.

  • May 13, 2006
  • 2 replies
  • 809 views
Hi, I have made a flash website in flash 8, and now I would like to set up player detection on it but got really confused when I downloaded the "Detection kit" can someone help me figure out what I have to do / where I have to put all the files. I would like to use one that uses flash to check for the correct player. basically I wont it to work like this - open a website it starts playing the "detect flash" flash movie clip, then it sends you to the appropriate page (noflash & flash), on the noflash site it plays another flash movie clip that gives you the option of downloading the update to flash 8 (with out going away to macromedia site) or not. If you choose not to then redirects you to whatever.
Thanks in advance for your help
BP
This topic has been closed for replies.
Correct answer blueprnt
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

2 replies

Known Participant
May 17, 2006
quote:

Originally posted by: blueprnt
[...] open a website it starts playing the "detect flash" flash movie clip, then it sends you to the appropriate page (noflash & flash) [...]



How is a flash movie supposed to load on a system that has no flash plugin?
You can't detect flash with flash, you can detect, if a browser supports flash using javascript (but theres no 100% method for it) then do version detection inside of flash...
blueprntAuthor
Inspiring
May 21, 2006
quote:

Originally posted by: schnizZzla

How is a flash movie supposed to load on a system that has no flash plugin?



I am targeting people with an older version of flash, and need them to upgrade to flash 8 so I can use some of the great feature of this version.
BP


Inspiring
May 13, 2006
blueprnt wrote:

> player. basically I wont it to work like this - open a website it starts
> playing the "detect flash" flash movie clip, then it sends you to the
> appropriate page (noflash & flash), on the noflash site it plays another flash
> movie clip that gives you the option of downloading the update to flash 8 (with
> out going away to macromedia site) or not. If you choose not to then redirects
> you to whatever.

I also found the "Detection Kit" very confusing. I recommend you check
out SWFObject:

http://blog.deconcept.com/swfobject/

Or read the Devnet article on it here:

http://adobe.com/devnet/flash/articles/swfobject.html

It's a great way to embed your flash and also allows you to set up
redirects relatively easily. Also allows you to initiate Express
Install for your "update" page.
Participant
May 13, 2006
I have a similar need would anyone mind taking a look at my site and telling me how they would approach version detection with my site? I'd like the HTML splash page to offer a download upon detection of a lower version of flash 8.0. When the user clicks the Resolution Media pic I'd like it to happen. Any advice? I've been reading up on System.capabilities.version but I don't have enough knowledge to do something with the returned information. Would a different method be more effective? It seems that everyone wants the user to be viewing their page with the correct ver. of flash that they published in, can this be easier?


Much appreciated!

CH