# Change font of a dynamic text field with as 2.0

**URL:** <https://forum.kirupa.com/t/change-font-of-a-dynamic-text-field-with-as-2-0/269779>\
**Category:** flash\
**Created:** [September 1, 2008, 4:30pm UTC](https://forum.kirupa.com/t/change-font-of-a-dynamic-text-field-with-as-2-0/269779 "2008-09-01T16:30:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Apocalypsesnow](https://avatars.discourse-cdn.com/v4/letter/a/41988e/32.png) [@Apocalypsesnow](https://forum.kirupa.com/u/Apocalypsesnow)\
**Post date:** [September 1, 2008, 4:30pm UTC](https://forum.kirupa.com/t/change-font-of-a-dynamic-text-field-with-as-2-0/269779/1 "2008-09-01T16:30:43Z")

</div>

Dear Kirupa,  
i’m a new user and i found a part of solution of my problem in this your article:  
[http://www.kirupa.com/developer/actionscript/changing\_font.htm](http://www.kirupa.com/developer/actionscript/changing_font.htm)  
Now i need another little help. I need to change the text in the text field from an input text and not from the string associated to the button you have done. It is possible?  
You associated this to the buttons:

on (release, rollOver) {  
font2 = “\<font face=“Times New Roman” \>Times New Roman\</font\>”;  
}

And i would like to do something like this :

on (release, rollOver) {  
font2 = “\<font face=“Arial” \>”+inputfont2.text+"\</font\>";  
}

Is it possible? what’s wrong? cause i have tried to do this but no way…
