4 Replies Latest reply on Sep 20, 2009 8:15 AM by kglad

    Why doesn't clickTAG work?

    tunghoy Level 1

      Getting clickTAG to work should be simple (using CS4 to generate AS2), but I can't figure out what I'm doing wrong. On the top layer of my swf in frame 1, I placed an invisible box, made it a MC and called it transpBox_mc. In another layer of frame 1, I placed the following code:

       

      transpBox_mc.onMouseUp = function():Void {  // with or without :Void it still doesn't work
          if (_root.clickTAG.substr(0,4) == "http") {
              getURL(_root.clickTAG, "_blank");
          }
      }

      // also tried this as a transparent button with an onRelease event

       

      In the HTML, I placed a Param tag in the Object section:

      <param name="flashvars" value="clickTAG=http://www.google.com" />

       

      ...and also placed the variable in the Embed section:

      embed src="movie.swf?clickTAG=http://www.google.com"

      // also tried flashvars="clickTAG=http://www.google.com"

       

      In all cases, the movie plays fine, but the link doesn't work. I tried locally, on my server and also tried the tester at http://bannerflow.com/clicktest (though it isn't clear which part of the parameter to enter).

       

      Any ideas? I'm out of 'em.