A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: AS fail: creating a clickable ad banner w/ ClickTag

  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    16

    Angry [RESOLVED]AS fail: creating a clickable ad banner w/ ClickTag

    Not really resolved, just giving up
    Last edited by salsagrrl; 11-23-2009 at 05:07 AM. Reason: don't need help any longer

  2. #2
    Flash Designer
    Join Date
    Oct 2008
    Posts
    58
    It is fairly simple to add clicktag to a banner, all you need to do is make an invisible movieclip on your top layer, and assign the following actionscript (AS2) onto it:

    on (release) {
    if (clickTAG.substr(0,5) == "http:") {
    getURL(clickTAG);
    }
    }

  3. #3
    Junior Member
    Join Date
    Jan 2001
    Posts
    16

    Thanks :)

    Thank you LG; the problem was that the code I was to add (atop the invisible button you mention) was dictated to me:

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


    Of course, this inactivates the button BELOW that (rollover and link is no longer effective) and the banner now drives to a 404 error. After reading countless posts and forums here and elsewhere, it seems this will always happen unless there's a corresponding bit of ClickTag code in the HTML the flash sits in. I don't know if that much is true or not; it's just what I'm hoping. In any event, I'm tired of researching it for now! I think your code is the "better" example, because I keep seeing it in other posts of this kind on the Internetz. I thank you very much for your kind assistance!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center