# Insert a gap into a text field at runtime

**URL:** <https://forum.kirupa.com/t/insert-a-gap-into-a-text-field-at-runtime/270368>\
**Category:** flash\
**Created:** [September 9, 2008, 8:30am UTC](https://forum.kirupa.com/t/insert-a-gap-into-a-text-field-at-runtime/270368 "2008-09-09T08:30:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kativo](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@kativo](https://forum.kirupa.com/u/kativo)\
**Post date:** [September 9, 2008, 8:30am UTC](https://forum.kirupa.com/t/insert-a-gap-into-a-text-field-at-runtime/270368/1 "2008-09-09T08:30:26Z")

</div>

Hi everybody,  
it’s the first time i write in this forum. Please, forgive me for my english but i’m italian.  
Here is the problem: i have to display some text from an external xml file.  
The xml file is something like this:  
\<sentences\>  
\<sentence\>I’ve got \<gap\>blonde\</gap\> hair and \<gap\>brown\</gap\> eyes and I’m tall.\</sentence\>  
\<sentence\>I like playing on my \<gap\>computer\</gap\>.\</sentence\>  
\<sentence\>I like riding my \<gap\>bike\</gap\>.\</sentence\>  
\</sentences\>

Instead of the content inside the \<gap\> tags, i have to display an input text field. So, for example the first sentence should appear like this:  
I’ve got \*\*INPUT TEXT FIELD \*\*hair and \*\*INPUT TEXT FIELD \*\*eyes and I’m tall.  
Any ideas?  
Thanks everybody in advance.
