4 Replies Latest reply on Mar 7, 2008 4:59 PM by Newsgroup_User

    get URL

    Graphic Graeme
      I’m trying to add a data tracking element to a banner ad I have created for the internet.
      I was given this code getURL(click TAG); but I have no clue where this should go. I have this code in place now getURL(https://www.lillyinteractive.ca “_blank:); but I’m getting an error message when I launch this swf from my desktop

      Any help with this would be greatly appreciated.
        • 1. Re: get URL
          Level 7
          Graphic Graeme,

          > I was given this code getURL(click TAG); but I have no clue
          > where this should go.

          That term, clickTag, is just a commonly used variable name for a URL
          that points to the usage tracking software. The value for your clickTag
          variable is not defined inside the SWF, like you would normally define a
          variable. Instead, the value will be fed into the SWF by the HTML document
          that embeds the SWF. It will be passed in by something called FlashVars.

          The important thing is to understand that case matters, so if it's
          clickTag, that's one thing. If it's clickTAG, that's another thing, etc.
          Other than that, this is nothing more than a string variable that will be
          fed by outside information. Instead of this:

          > I have this code in place now getURL(https://www.lillyinteractive.ca
          > ?_blank:);

          ... you'll replace the domain name with the name of the variable, clickTag,
          whose value will hold that domain name for you. Because of that, this isn't
          something you can just test inside of Flash, because, of course, the
          variable doesn't have a value yet.

          Does that make sense?

          If your document is configured for AS2, the value of clickTag will
          magically just be there when the SWF is embedded in the HTML. If you're
          dealing with AS3, let me know, because you have to access it from a
          different location (not just as a loose variable).


          David Stiller
          Adobe Community Expert
          Dev blog, http://www.quip.net/blog/
          "Luck is the residue of good design."


          • 2. Re: get URL
            Level 7
            > If you're dealing with AS3, let me know, because you have
            > to access it from a different location (not just as a loose variable).

            Actually, it's already clear you're working with AS2, because getURL()
            has changed in AS3. :)


            David Stiller
            Adobe Community Expert
            Dev blog, http://www.quip.net/blog/
            "Luck is the residue of good design."


            • 3. Re: get URL
              Damon Edwards Level 3
              "Actually, it's already clear you're working with AS2, because getURL()
              has changed in AS3. :)"

              "but I’m getting an error message" -- This could mean publish settings are AS3... just a thought, would help to know the error he/she's getting..
              • 4. Re: get URL
                Level 7
                dz,

                Agreed. And I'm the doof that hasn't asked that yet. lol Thanks for
                bringing that up!

                > "but I?m getting an error message" -- This could mean
                > publish settings are AS3... just a thought, would help to
                > know the error he/she's getting..


                David Stiller
                Adobe Community Expert
                Dev blog, http://www.quip.net/blog/
                "Luck is the residue of good design."