# Case insensitive clickTAG vs clickTag

**URL:** <https://forum.kirupa.com/t/case-insensitive-clicktag-vs-clicktag/273237>\
**Category:** Uncategorized\
**Created:** [October 13, 2008, 1:54pm UTC](https://forum.kirupa.com/t/case-insensitive-clicktag-vs-clicktag/273237 "2008-10-13T13:54:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![somnamblst](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@somnamblst](https://forum.kirupa.com/u/somnamblst)\
**Post date:** [October 13, 2008, 1:54pm UTC](https://forum.kirupa.com/t/case-insensitive-clicktag-vs-clicktag/273237/1 "2008-10-13T13:54:02Z")

</div>

I am having an issue where what I thought was the standard tag

```auto
on (release) {
if (_root.clickTAG.substr(0,5) == "http:") {
getURL(_root.clickTAG, "_blank");
}
}

```

A third party is asking me to use:

```auto
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?

```auto

on(release){
    getURL(getClickTag());
 
function getClickTag():String{
    for (var key:String in _root)
        if(key.toLowerCase()=="clicktag")
        return _root[key];
    return "";
 
}
}

```
