# Simple createTextfield problem

**URL:** <https://forum.kirupa.com/t/simple-createtextfield-problem/219181>\
**Category:** Uncategorized\
**Created:** [March 14, 2007, 2:53pm UTC](https://forum.kirupa.com/t/simple-createtextfield-problem/219181 "2007-03-14T14:53:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abraxas](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@abraxas](https://forum.kirupa.com/u/abraxas)\
**Post date:** [March 14, 2007, 2:53pm UTC](https://forum.kirupa.com/t/simple-createtextfield-problem/219181/1 "2007-03-14T14:53:46Z")

</div>

Hi,

Im having a problem with this little simple code but i cant figure out how to fix it 😕

[AS]  
defineMC = “textm”; //giving the variable defineMC “textm”  
\_root.createTextField(defineMC,1,50,100,200,100); //creating a textfield with the instancename “textm”  
\_root.defineMC.variable = “textp”; //sets the variable of the textfield to “textp”  
\_root.textp = “hej”; //sets the textfield’s text to “hej”  
[/AS]
