Skip navigation
Currently Being Moderated

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

Mar 28, 2011 11:05 AM



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.

  • Currently Being Moderated
    Mar 28, 2011 2:51 PM   in reply to mildmanorflashdesign

    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!


    Mark as:
  • Currently Being Moderated
    Mar 29, 2011 7:36 AM   in reply to mildmanorflashdesign

    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.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points