# fontFamily for TextField

**URL:** <https://forum.kirupa.com/t/fontfamily-for-textfield/284089>\
**Category:** flash\
**Created:** [March 15, 2009, 12:22am UTC](https://forum.kirupa.com/t/fontfamily-for-textfield/284089 "2009-03-15T00:22:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bortiquai](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@bortiquai](https://forum.kirupa.com/u/bortiquai)\
**Post date:** [March 15, 2009, 12:22am UTC](https://forum.kirupa.com/t/fontfamily-for-textfield/284089/1 "2009-03-15T00:22:21Z")

</div>

I am using AS3 to dynamically create TextFields.

It is working fine, except I can’t figure out how to apply a font. It is always the same.

i tried:

txtField.fontFamily = ‘Arial’;

but got the error "Property fontFamily cannot be applied to flash.text.TextField.

So how do i do this?  
thanks
