Copy link to clipboard
Copied
Hello,
I have made banner with click thru for counting clicks. But the servis of the serever, where I want to put the banner, still giving me back, because the url whitch they set on it generate on the end "0", so it doesnt work. (for example www.adress.com/0 )
I checked all the layers, and only script whitch I have there is the click thru, nothing more. I'am not flash expert, but I made some similer banners before and there were no troubles.
The click thru look like this:
on (release) {
if (_root.clickthru==undefined && _root.clickTag) {
_root.clickthru = _root.clickTag;
}
if (_root.clickthru==undefined && _root.clickTAG) {
_root.clickthru = _root.clickTAG;
}
if ( _root.clickTarget ==undefined) {
_root.clickTarget = "_top";
}
getURL(_root.clickthru, _root.clickTarget);
}
Please, do you have some idea, where can be the trouble? I think, it must be on the server owner side, but I really don't know.
Thanks, Jakub.
Copy link to clipboard
Copied
use the trace function to start debugging, or if you're testing in a browser use a textfield or something else to see the value of _root.clickthru.
Copy link to clipboard
Copied
if (_root.clickthru==undefined && _root.clickTag) {
_root.clickthru = _root.clickTag;
}
after the && there is not an equality check so it probably won't work. Maybe you need an == and something after it instead of _root.clickTag on its own. The same for the second if statement.
Copy link to clipboard
Copied
Thank you very much, at the end I could look in to the administration of the advertaiser server and I founded, that they hade mistake in their code. Now is everything working absolutely ok.
Thank you again!
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now