I am having an issue where what I thought was the standard tag
on (release) {
if (_root.clickTAG.substr(0,5) == "http:") {
getURL(_root.clickTAG, "_blank");
}
}
A third party is asking me to use:
on (release) {
getURL(clickTag,"_blank");
}
The obvious difference is clickTAG vs. clickTag, having to worry about which & where & producing 2 versions of each SWF will be a hassle.
I found the following on a JS code blog that says
“If you want to use case insensitive clickTAG there’s a simple function to do that.”
I want to use clickTAG but when I pass my files to a 3rd party that uses clickTag I don’t want them to send it back saying it doesn’t work. Does the following AS do what I think it does?
on(release){
getURL(getClickTag());
function getClickTag():String{
for (var key:String in _root)
if(key.toLowerCase()=="clicktag")
return _root[key];
return "";
}
}