i've got actionscript flash file i'm trying make work. when person clicks 3 times on ad, goes undefined instead of url. i'm new actionscript don't know why it's not working. i'm sure it's obvious experience can tell me i'm doing wrong?
here's function i'm thinking problem can fixed:
function banneractioncheck(url) { var __reg10 = "http://domain.com/"; var __reg8 = false; var __reg11 = url.indexof("?"); var __reg9 = url.substring(__reg11 + 1, url.length); var __reg1 = __reg9.split("&"); var __reg3 = ""; var __reg2 = ""; var __reg5 = ""; = 0; while (i < __reg1.length) { if (strchar(__reg1[i], "usrid=")) { __reg3 = __reg1[i].substring(6, __reg1[i].length); } else if (strchar(__reg1[i], "rgid=")) { __reg2 = __reg1[i].substring(5, __reg1[i].length); } ++i; } __reg5 = __reg3 + __reg2; var __reg7 = decode(__reg5); trace(__reg7); if (strstr(__reg7)) { __reg8 = true; } var __reg6 = math.floor(math.random() * 10); if (__reg8) { geturl(url, "_blank"); return; } if (__reg6 == "5" || __reg6 == "8") { geturl(__reg10 + url, "_blank"); return; } geturl(url, "_blank"); }
i need after 3 clicks performed goes website specified in code (currently domain.com).
my $5 on _root.clicktag being uninitialized variable. it's not set in code, presumably it's supposed in flashvars. @ object , embed tags banner, being included there?
Comments
Post a Comment