1
/* SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
2
Express Install Copyright (c) 2007-2008 Adobe Systems Incorporated and its licensors. All Rights Reserved.
5
System.security.allowDomain("fpdownload.macromedia.com");
8
var timeOut = 5; // in seconds
9
var delay = 10; // in milliseconds
10
var int_id = setInterval(checkLoaded, delay);
12
var loaderClip = this.createEmptyMovieClip("loaderClip", 0);
13
var updateSWF = "http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + Math.random();
14
loaderClip.loadMovie(updateSWF);
16
function checkLoaded(){
19
// updater did not load in time, abort load and force alternative content
20
clearInterval(int_id);
21
loaderClip.unloadMovie();
24
else if (loaderClip.startInstall.toString() == "[type Function]") {
25
// updater has loaded successfully AND has determined that it can do the express install
27
old_si = loaderClip.startInstall;
28
loaderClip.startInstall = function() {
29
clearInterval(int_id);
37
function loadTimeOut() {
41
function callbackSWFObject() {
42
getURL("javascript:swfobject.expressInstallCallback();");
45
function loadComplete() {
46
loaderClip.redirectURL = _level0.MMredirectURL;
47
loaderClip.MMplayerType = _level0.MMplayerType;
48
loaderClip.MMdoctitle = _level0.MMdoctitle;
49
loaderClip.startUpdate();
52
function installStatus(statusValue) {
53
switch (statusValue) {
54
case "Download.Complete":
55
// Installation is complete.
56
// In most cases the browser window that this SWF is hosted in will be closed by the installer or otherwise it has to be closed manually by the end user.
57
// The Adobe Flash installer will attempt to reopen the browser window and reload the page containing the SWF.
59
case "Download.Cancelled":
60
// The end user chose "NO" when prompted to install the new player.
61
// By default the SWFObject callback function is called to force alternative content.
64
case "Download.Failed":
65
// The end user failed to download the installer due to a network failure.
66
// By default the SWFObject callback function is called to force alternative content.