Click to See Complete Forum and Search --> : clickTAG


techissue2008
06-09-2008, 04:50 PM
Hi

I need to track a flash banner by using clickTAG AS. Set the flash button
on (release) {
getURL(clickTAG, "_blank");
}

Here is the html:
<OBJECT classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,5,0,175">
<PARAM NAME=movie VALUE="http://www.url.com/test.swf">
<PARAM NAME=FlashVars VALUE="clickTAG=http://www.trackbanner.com/banner.do?wId=920&pId=37&targetURL=http://www.target.com">
<PARAM NAME=menu VALUE=false><PARAM NAME=quality VALUE=high>
<EMBED src="http://www.url.com/test.swf" FlashVars="clickTAG=http://www.trackbanner.com/banner.do?wId=920&pId=37&targetURL=http://www.target.com">
</EMBED></OBJECT>

If I open http://www.trackbanner.com/banner.do?wId=920&pId=37&targetURL=http://www.target.com in a browser, it can be directed to http://www.target.com.

If I click the flash button sourced from http://www.url.com/test.swf, it will only be directed to http://www.trackbanner.com/banner.do?wId=920 and cannot reach the target website.

It missed &pId=37&targetURL=http://www.target.com when I click the flash button.

What's wrong with the html or AS code?

Thanks for advice

tbuchok
11-09-2008, 05:02 PM
@techissue2008 -- the clicktag will, in fact, break the URL string.

It looks like what you'll need to do is figure out a way to code the FLA and/or embed to accept two variables. See this link:

http://www.kirupa.com/forum/archive/index.php/t-258042.html

As you're testing ads, here's a simple clicktag tester:

http://www.bannerflow.com/clicktest/

sjayk
08-25-2010, 01:18 PM
This worked for me. "last" is variable name sent to search app, "lastName" is variable name for text field in Flash that gives "last" it's value.


search.onPress = function() {

sendData = new LoadVars();
sendData.last = lastName;
sendData.first = firstName;


sendData.send(_level0.clickTag,"_blank","POST");

---Jay

}

sjayk
08-25-2010, 01:21 PM
Just make sure your "clickTag" variable names match in HTML and SWF. I used a different variable name than your original post.