2 Replies Latest reply on Apr 18, 2011 3:25 PM by Katherine Deeds

    Some users are getting no data

    Katherine Deeds

       

      We are having some issues with some Flash on our site. Some users are getting no data in the blue arrow and the water rises to the top (see screen shot) when they bring up this page http://www.idahopower.com/OurEnvironment/WaterInformation/Reservoir/default.cfm

       

       

       

      This is the actionscript that we are using

       

       

       

      var levelVar:Number;

      if (_level0.inLevel == undefined) {
           levelVar = Number (0);
      } else {
           levelVar = Number (_level0.inLevel);
      }

      if (levelVar <= 2007) {
           gotoAndPlay ("fr2007");
           m2007_mc.t2007_txt.text = levelVar;

      } else if ((levelVar <= 2017) && (levelVar > 2007)) {
           gotoAndPlay ("fr2017");
           m2017_mc.t2017_txt.text = levelVar;
      } else if ((levelVar <= 2027) && (levelVar > 2017)) {
           gotoAndPlay ("fr2027");
           m2027_mc.t2027_txt.text = levelVar;
      } else if ((levelVar <= 2037) && (levelVar > 2027)) {
           gotoAndPlay ("fr2037");
           m2037_mc.t2037_txt.text = levelVar;
      } else if ((levelVar <= 2047) && (levelVar > 2037)) {
           gotoAndPlay ("fr2047");
           m2047_mc.t2047_txt.text = levelVar;
      } else if ((levelVar <= 2057) && (levelVar > 2047)) {
           gotoAndPlay ("fr2057");
           m2057_mc.t2057_txt.text = levelVar;
      } else if ((levelVar <= 2067) && (levelVar > 2057)) {
           gotoAndPlay ("fr2067");
           m2067_mc.t2067_txt.text = levelVar;
      } else if ((levelVar <= 2077) && (levelVar > 2067)) {
           gotoAndPlay ("fr2077");
           m2077_mc.t2077_txt.text = levelVar;
      }

       

       

       

      Here is the the code that displays the Flash.

       

       

       

      <!-- updated by Phillip Hajjar 07.22.2008 -->
      var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
      if(hasRightVersion) {  // if we've detected an acceptable version
                       if (AC_FL_RunContent == 0) {
                                       alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to the HTML output folder.");
                       } else {
                                       // embed the flash movie
                                       AC_FL_RunContent(
                                                       'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
                                                       'width', '485',
                                                       'height', '267',
                                                       'src', '/flash/brownleeLevels',
                                                       'quality', 'high',
                                                       'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
                                                       'align', 'middle',
                                                       'play', 'true',
                                                       'loop', 'true',
                                                       'scale', 'showall',
                                                       'wmode', 'window',
                                                       'devicefont', 'false',
                                                       'id', 'brownleeLevels',
                                                       'bgcolor', '#ffffff',
                                                       'name', 'brownleeLevels',
                                                       'menu', 'false',
                                                       'flashvars','inLevel=<cfoutput>#dspLvalue#</cfoutput>',
                                                       'allowScriptAccess','sameDomain',
                                                       'movie', '/flash/brownleeLevels',
                                                       'salign', ''
                                                       ); //end AC code
                       }
      } else {  // flash is too old or we can't detect the plugin
                       var alternateContent = 'This content requires the Macromedia Flash Player.'
                       + '<a href=http://get.adobe.com/flashplayer/?promoid=BUIGP>Get Flash</a>';
                       document.write(alternateContent);  // insert non-flash content
      }
      // -->
      </script>

       

       

      Has anyone else had this issue and if so, how did you resolve it? capture022.jpg

      Thank you for any help you can give.