Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.
// used for express install - not required for plain FlashObject use
// for more info, see http://blog.deconcept.com/flashobject/
#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 ** NOTE: see notes in Upgrade Message movieclip re: types of content to use
var upgradeMsg = _root.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() {
ExpressInstall.init();
}
// if expressinstall is invoked, stop the timeline.
stop();
}
// -----
// alternate usage:
// -----
/*
// test to see if install is needed:
if (ExpressInstall.needsUpdate) { // returns true if update is needed
ExpressInstall.init(); // starts the update
stop();
}
// otherwise, start the movie normally
*/
1 to 2 of 2