# Inserting text on click

**URL:** <https://forum.kirupa.com/t/inserting-text-on-click/206304>\
**Category:** flash\
**Created:** [November 7, 2006, 12:53am UTC](https://forum.kirupa.com/t/inserting-text-on-click/206304 "2006-11-07T00:53:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbailey](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jbailey/32/2380_2.png) [@jbailey](https://forum.kirupa.com/u/jbailey)\
**Post date:** [November 7, 2006, 12:53am UTC](https://forum.kirupa.com/t/inserting-text-on-click/206304/1 "2006-11-07T00:53:53Z")

</div>

I have a input text field on the stage and I want to insert text into that inputTF via a button. I can’t use something like

```auto

add.onRelease = function(){
   inputTF.htmlText = "hello world"
}

```

becase it replaces the user’s inputed text. I want to just **insert** text where there “flashingType-dealy” is located (my apologies I don’t know what it is called).

I think a starting point is using Selection

EG

```auto

Selection.setFocus(inputTF);
Selection.setSelection(this.tempBegin, this.tempEnd);
//what else? //

```

Thanks!
