4 Replies Latest reply: Mar 29, 2011 7:48 AM by mildmanorflashdesign RSS

    Help with Different clickTags(clickTAG,clickTag,_level0,) on one Banner

    mildmanorflashdesign Community Member

      Hello

       

      So my problem is I've been making a bunch of flash banners(AS2.0) for a bunch of different publications. They all have different clickTags. I used to publish sets(160,300,728) for each tag but I feel there must be an easier way. I would like to use the same banner for ALL the trafficking.

       

      Just to be clear I have 1 button instance on my banner. I just want to add multiple click tags to the banner to cover this "Non-Industry Standard" solution to flash banners.
      Here are a few example of tags.

       

      on (release){getURL(clickTag, "_blank");}
      on (release){getURL(_root.clickTAG, "_blank");}
      on (release) {getURL(_level0.clickTag, "_blank");}
      on (release){getURL(clickTAG, "_blank");}

       

      Do I need an if/else statement or can I fire them all off all at once and whatever the browser is set to receive it will only receive that call.

       


      Thanks in advance for any help.

        • 1. Re: Help with Different clickTags(clickTAG,clickTag,_level0,) on one Banner
          logic interface

          There's something like an "universal clicktag", it could help you a lot:

           

          on (release)
          {
                      function cFcTg(t) {
                                  return (t.substr(0, 7) == 'http://' || t.substr(0, 8) == 'https://');
                      }
                     
                      var fcTg = ''; var fcTt = '_blank';
                      var cTgM = 'clicktag'; var cTtM = 'clicktarget';
                     
                      for (prop in this) {
                                  var p = prop.toLowerCase();
                                  if (p == cTgM && cFcTg(this[prop])) fcTg = this[prop]; if (p == cTtM) fcTt = this[prop];
                      }
                      if(fcTg == '' || fcTt == '_blank')
                                  for (prop in _root) {
                                              var p = prop.toLowerCase();
                                              if (p == cTgM && cFcTg(_root[prop]) && fcTg == '') fcTg = _root[prop];
                                              if (p == cTtM && fcTt == '_blank') fcTt = _root[prop];
                                  }
                      if(fcTg == '' || fcTt == '_blank')
                                  for (prop in _level0) {
                                              var p = prop.toLowerCase();
                                              if (p == cTgM && cFcTg(_level0[prop]) && fcTg == '') fcTg = _level0[prop];
                                              if (p == cTtM && fcTt == '_blank') fcTt = _level0[prop];
                                  }
                      if (cFcTg(fcTg)) getURL(fcTg, fcTt);
                      else getURL("http://noclicktagfound", fcTt);
          }
          

           

          Although not all ad servers accept it!

           

          • 2. Re: Help with Different clickTags(clickTAG,clickTag,_level0,) on one Banner
            mildmanorflashdesign Community Member

            Wow now thats a  line a code. Yeah if it doesn't work on all servers than it really puts me back in the same place I was beforeThansk for the help. I'll keep trying to figure this out.

             

            Thanks,

            • 3. Re: Help with Different clickTags(clickTAG,clickTag,_level0,) on one Banner
              logic interface Community Member

              What you're trying to do, won't work anyway. Firing off 4 events at the same time, will in theory open 4 new windows... so you need to use the If statement. It's not that the code in my example doesn't work, it's way over the top, and by far the best solution I ever found to catch all the different clicktags.

               

              But that said, in my experience, Microsoft can be very picky about this. If you do not use their example code literally, it will be rejected...

               

              We use our own little AIR app, that's capable of changing the clicktag in multiple files.

              • 4. Re: Help with Different clickTags(clickTAG,clickTag,_level0,) on one Banner
                mildmanorflashdesign Community Member

                Yeah I didn't think what I was doing would work. I'm looking for suggestions

                on the best way to handle it. I don't have a way to recreate the test enviorment for the pubs I'm sending to.

                 

                Thanks for the help and the education