0 Replies Latest reply on May 21, 2008 1:43 PM by thephantom6969

    air badge file

      Trying to have an air file installed from the web. Here is my badge file. It says invalid parameters or Air is unavailable. Is unavailable because it is suppose to be installed.
      No javascript errors.
      <html xmlns=" http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <script language="javascript">AC_FL_RunContent = 0;</script>
      <script src="AC_RunActiveContent.js" language="javascript"></script>
      <body bgcolor="#e5e5e5">
      <!--url's used in the movie-->
      <!--text used in the movie-->
      <!-- saved from url=(0013)about:internet -->
      <script type="text/javascript" src="swfobject.js"></script>

      <div id="flashcontent" style="width:215px; height:180px;">
      <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.

      <script type="text/javascript">
      // <![CDATA[

      // version 9.0.115 or greater is required for launching AIR apps.
      var so = new SWFObject("AIRInstallBadge.swf", "Badge", "215", "180", "9.0.115", "#FFFFFF");

      // these parameters are required for badge install:
      so.addVariable("airversion", "1.0"); // version of AIR runtime required
      so.addVariable("appname", "College Algebra"); // application name to display to the user
      so.addVariable("appurl", " http://localhost/AirWebInstall/CollegeAlgAir.air"); // absolute URL (beginning with http or https) of the application ".air" file

      // these parameters are required to support launching apps from the badge (but optional for install):
      //so.addVariable("appid", "com.adobe.air.CollegeAlgAir"); // the qualified application ID (ex. com.gskinner.air.MyApplication)
      //so.addVariable("pubid", ""); // publisher id

      // this parameter is required in addition to the above to support upgrading from the badge:
      so.addVariable("appversion", "1.0.1"); // AIR application version

      // these parameters are optional:
      so.addVariable("imageurl", "test.jpg"); // URL for an image (JPG, PNG, GIF) or SWF to display in the badge (205px wide, 170px high)
      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("skiptransition", "false"); // skips the initial transition if "true"
      so.addVariable("titlecolor", "#00AAFF"); // changes the color of titles
      so.addVariable("buttonlabelcolor", "#00AAFF"); // 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:
      // 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_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


      // ]]>
      <script language="javascript">
      if (AC_FL_RunContent == 0) {
      alert("This page requires AC_RunActiveContent.js.");
      } else {
      'codebase', ' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
      'width', '215',
      'height', '180',
      'src', 'AIRInstallBadge',
      'quality', 'high',
      'pluginspage', ' http://www.macromedia.com/go/getflashplayer',
      'align', 'middle',
      'play', 'true',
      'loop', 'true',
      'scale', 'showall',
      'wmode', 'window',
      'devicefont', 'false',
      'id', 'AIRInstallBadge',
      'bgcolor', '#e5e5e5',
      'name', 'AIRInstallBadge',
      'menu', 'true',
      'allowFullScreen', 'false',
      'movie', 'AIRInstallBadge',
      'salign', ''
      ); //end AC code