incubator-flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bigosma...@apache.org
Subject svn commit: r1363553 - in /incubator/flex/utilities/InstallApacheFlex/badge: index.html install.html
Date Thu, 19 Jul 2012 21:27:15 GMT
Author: bigosmallm
Date: Thu Jul 19 21:27:14 2012
New Revision: 1363553

URL: http://svn.apache.org/viewvc?rev=1363553&view=rev
Log:
Removing install.html and adding index.html

Added:
    incubator/flex/utilities/InstallApacheFlex/badge/index.html
Removed:
    incubator/flex/utilities/InstallApacheFlex/badge/install.html

Added: incubator/flex/utilities/InstallApacheFlex/badge/index.html
URL: http://svn.apache.org/viewvc/incubator/flex/utilities/InstallApacheFlex/badge/index.html?rev=1363553&view=auto
==============================================================================
--- incubator/flex/utilities/InstallApacheFlex/badge/index.html (added)
+++ incubator/flex/utilities/InstallApacheFlex/badge/index.html Thu Jul 19 21:27:14 2012
@@ -0,0 +1,73 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+	<!-- SWFObject embed by Geoff Stearns geoff@deconcept.com http://blog.deconcept.com/swfobject/
-->
+	<script type="text/javascript" src="swfobject.js"></script>
+</head>
+<body color="#FFFFFF">
+	
+	<div id="flashcontent" style="width:300px; height:300px;">
+		<strong>Please upgrade your Flash Player</strong>
+		This is the content that would be shown if the user does not have Flash Player 6.0.65 or
higher installed.
+	</div>
+
+	<script type="text/javascript">
+		
+		// version 9.0.115 or greater is required for launching AIR apps.
+		var so = new SWFObject("AIRInstallBadge.swf", "Badge", "300", "300", "9.0.115", "#e5e5e5");
+        //so.addParam("wmode", "transparent");
+        so.addParam("bgcolor", "#FFFFFF");
+        so.useExpressInstall('expressinstall.swf');
+
+		// these parameters are required for badge install:
+		//so.addVariable("mode", "install"); // badge mode install
+		so.addVariable("mode", "download"); // badge mode download
+		so.addVariable("airversion", "1.0"); // version of AIR runtime required
+		so.addVariable("appname", "InstallApacheFlex"); // application name to display to the user
+		var extension = "";
+		if (navigator.appVersion.indexOf("Win")!=-1)
+		{
+			extension = "exe";
+		}
+		else if (navigator.appVersion.indexOf("Mac")!=-1)
+		{
+			extension = "dmg";
+		}
+		else
+		{
+			alert("Unsupported operating system");
+		}
+		so.addVariable("appurl", "http://people.apache.org/~bigosmallm/installapacheflex/InstallApacheFlex."
+ extension); // absolute URL (beginning with http or https) of the application ".exe" or
".dmg" file
+		// these parameters are required to support launching apps from the badge (but optional
for install):
+		so.addVariable("appid", "org.apache.flex.installapacheflex"); // the qualified application
ID (ex. com.gskinner.air.MyApplication)
+		so.addVariable("pubid", "apache.org"); // publisher id
+		
+		// this parameter is required in addition to the above to support upgrading from the badge:
+		so.addVariable("appversion", ""); // AIR application version
+        so.addVariable("sdkversion", "4.8.0"); // AIR application version
+        so.addVariable("ide", "for Adobe Flash Builder"); // AIR application version
+
+		// these parameters are optional:
+		so.addVariable("appinstallarg", "installed from web"); // passed to the application when
it is installed from the badge
+		so.addVariable("applauncharg", "launched from web"); // passed to the application when
it is launched from the badge
+		so.addVariable("helpurl", "help.html"); // optional url to a page containing additional
help, displayed in the badge's help screen
+		so.addVariable("hidehelp", "false"); // hides the help icon if "true"
+		so.addVariable("titlecolor", "#00AAFF"); // changes the color of titles
+		so.addVariable("buttonlabelcolor", "#FFFFFF"); // changes the color of the button label
+		so.addVariable("appnamecolor", "#00AAFF"); // changes the color of the application name
if the image is not specified or loaded
+
+		// these parameters allow you to override the default text in the badge (i.e. for localization
purpose):
+		// supported strings: str_error, str_err_params, str_err_airunavailable, str_err_airswf,
str_loading, str_install, str_launch, str_upgrade, str_close, str_launching, str_launchingtext,
str_installing, str_installingtext, str_tryagain, str_beta3, str_beta3text, str_help, str_helptext
+        //so.addVariable("str_install", "DOWNLOAD");
+        so.addVariable("str_err_airswf", "<u>Running locally?</u><br/><br/>The
AIR proxy swf won't load properly when this demo is run from the local file system."); //
overrides the error text when the AIR proxy swf fails to load
+		so.write("flashcontent");
+		
+		// ]]>
+	</script>
+
+<!-- END EMBED CODE -->
+
+	
+</body>
+</html>



Mime
View raw message