# Setting a variable in a textfield - possible?

**URL:** <https://forum.kirupa.com/t/setting-a-variable-in-a-textfield-possible/313463>\
**Category:** flash\
**Created:** [August 31, 2010, 12:26pm UTC](https://forum.kirupa.com/t/setting-a-variable-in-a-textfield-possible/313463 "2010-08-31T12:26:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinc](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kevinc/32/1079_2.png) [@kevinc](https://forum.kirupa.com/u/kevinc)\
**Post date:** [August 31, 2010, 12:26pm UTC](https://forum.kirupa.com/t/setting-a-variable-in-a-textfield-possible/313463/1 "2010-08-31T12:26:28Z")

</div>

Hey all, I have a very small AS3 question.

I want to do something like this, is it possible to set a variable in a textfield?

Pop this in a new Flash file and you’ll get an error.

```auto
var blah_txt:TextField = new TextField;
stage.addChild(blah_txt);
blah_txt.text = "One";

blah_txt.blah = 1; // Is this possible, I get error 1119

```

How can I do this, or something similar?

Thanks
