# 1151: A conflict exists with definition textFieldName in namespace internal

**URL:** <https://forum.kirupa.com/t/1151-a-conflict-exists-with-definition-textfieldname-in-namespace-internal/270998>\
**Category:** Uncategorized\
**Created:** [September 17, 2008, 7:42am UTC](https://forum.kirupa.com/t/1151-a-conflict-exists-with-definition-textfieldname-in-namespace-internal/270998 "2008-09-17T07:42:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kalma](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@kalma](https://forum.kirupa.com/u/kalma)\
**Post date:** [September 17, 2008, 7:42am UTC](https://forum.kirupa.com/t/1151-a-conflict-exists-with-definition-textfieldname-in-namespace-internal/270998/1 "2008-09-17T07:42:25Z")

</div>

Hi everyone, been searching for answers to my problems here lately and atleast google didnt give me a straight answer to this one. Ok so here comes me question:

i want to be able to use this function to create textfields with unique names. how do i change this so that i can read the parameter value to the new variable without having this namespace conflict?

```auto
 
function createTextField(textFieldName:String,inputField:String,formatType:String,contentBackgroundMovieClip:String):TextField {
       
   
   var textFieldName:TextField = new TextField();
            textfieldName.embedFonts = true;
            textfieldName.autoSize = TextFieldAutoSize.LEFT;
            textfieldName.antiAliasType = AntiAliasType.ADVANCED;
            textfieldName.setTextFormat = setTextFormat(formatType);
            textfieldName.selectable = false;
            textfieldName.mouseEnabled = true;
            textfieldName.text = inputField;
   textfieldName.toUpperCase();
   
   contentBackgroundMovieClip.addChild(textFieldName);
            
        
        }
  

```
