# TextFieldType.INPUT bug?

**URL:** <https://forum.kirupa.com/t/textfieldtype-input-bug/242390>\
**Category:** flash\
**Created:** [October 25, 2007, 1:35pm UTC](https://forum.kirupa.com/t/textfieldtype-input-bug/242390 "2007-10-25T13:35:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjdesignma](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@rjdesignma](https://forum.kirupa.com/u/rjdesignma)\
**Post date:** [October 25, 2007, 1:35pm UTC](https://forum.kirupa.com/t/textfieldtype-input-bug/242390/1 "2007-10-25T13:35:40Z")

</div>

[COLOR=black][FONT=Arial]I am experience a problem with input textfields. If I default the text of my text field to “”, or even do not set it at all, and I have embedFonts = true, then i am unable to type into the text field. I DO have the font in my library, so that is not the issue.[/FONT][/COLOR]  
[COLOR=black][FONT=Arial] [/FONT][/COLOR]  
[COLOR=black][FONT=Arial]Funny thing is… if I set embedFonts = false, then i can type into the text field BUT it is the Flash default font (Times New Roman) even though I am specifically trying to set it to Tahoma.[/FONT][/COLOR]  
[COLOR=black][FONT=Arial] [/FONT][/COLOR]  
[COLOR=black][FONT=Arial]Also, with embedFonts = true, if I put some text (even a SPACE) in the textfield then everything is fine. Problem is… I do not want my input fields to have text in them by default![/FONT][/COLOR]  
[COLOR=black][FONT=Arial] [/FONT][/COLOR]  
[COLOR=black][FONT=Arial]Here is some code (remember to put the Font “Tahoma” in your library). If you run it as is you will hopefully see the issue I am talking about…[/FONT][/COLOR]  
[COLOR=black][FONT=Arial] [/FONT][/COLOR]  
[COLOR=black][FONT=Arial]

```auto
[/FONT][/COLOR]
[COLOR=black][FONT=Arial] [/FONT][/COLOR]
[COLOR=black][FONT=Arial]import flash.text.TextField;[/FONT][/COLOR]
[COLOR=black][FONT=Arial]import flash.text.TextFieldType;[/FONT][/COLOR]
[COLOR=black][FONT=Arial]import flash.text.TextFormat;[/FONT][/COLOR]
[COLOR=black][FONT=Arial] [/FONT][/COLOR]
[COLOR=black][FONT=Arial]var _form:TextFormat = new TextFormat();[/FONT][/COLOR]
[COLOR=black][FONT=Arial]_form.font = "Tahoma";[/FONT][/COLOR]
[COLOR=black][FONT=Arial]_form.size = 12;[/FONT][/COLOR]
[COLOR=black][FONT=Arial] [/FONT][/COLOR]
[COLOR=black][FONT=Arial]var _tf:TextField = new TextField();[/FONT][/COLOR]
[COLOR=black][FONT=Arial]_tf.type = TextFieldType.INPUT;[/FONT][/COLOR]
[COLOR=black][FONT=Arial]_tf.width = 200;[/FONT][/COLOR]
[COLOR=black][FONT=Arial]_tf.height = 20;[/FONT][/COLOR]
[COLOR=black][FONT=Arial]_tf.border = true;[/FONT][/COLOR]
[COLOR=black][FONT=Arial]_tf.embedFonts = true; // toggle this false to see Times New Roman for some reason!?[/FONT][/COLOR]
[COLOR=black][FONT=Arial]_tf.text = ""; // put a space in here with embedFonts = true and you'll see Tahoma![/FONT][/COLOR]
[COLOR=black][FONT=Arial]_tf.setTextFormat( _form );[/FONT][/COLOR]
[COLOR=black][FONT=Arial]addChild( _tf );[/FONT][/COLOR]
[COLOR=black][FONT=Arial] [/FONT][/COLOR]
[COLOR=black][FONT=Arial]

```

[/FONT][/COLOR]  
[COLOR=black][FONT=Arial] [/FONT][/COLOR]  
Any help would be greatly appreciated![COLOR=black][FONT=Arial][/FONT][/COLOR]
