Posted By

martinmajling on 02/21/12


Tagged

banner ads clickTag clickthru


Versions (?)

Define target url in flash banner via parameter


 / Published in: ActionScript
 

Possible parrameters: clickTAG, clickTag, clickthru if is not defined url use default url "http://www.your-site.com"

http://www.link-to-banner.com/banner.swf?clickTAG=http://www.your-site.com

  1. on (release) {
  2. if (typeof _root.click != "undefined") {
  3. getURL(_root.click, "_blank");
  4. } else if (typeof _root.clickTAG != "undefined") {
  5. getURL(_root.clickTAG, "_blank");
  6. } else if (typeof _root.clickTag != "undefined") {
  7. getURL(_root.clickTag, "_blank");
  8. } else if (typeof _root.clickthru != "undefined") {
  9. getURL(_root.clickthru, "_blank");
  10. } else {
  11. getURL("http://www.your-site.com",_blank);
  12. }
  13. }

Report this snippet  

You need to login to post a comment.