# Replacing Characters - How to

**URL:** <https://forum.kirupa.com/t/replacing-characters-how-to/208087>\
**Category:** flash\
**Created:** [November 24, 2006, 7:21pm UTC](https://forum.kirupa.com/t/replacing-characters-how-to/208087 "2006-11-24T19:21:51Z")\
**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 24, 2006, 7:21pm UTC](https://forum.kirupa.com/t/replacing-characters-how-to/208087/1 "2006-11-24T19:21:51Z")

</div>

**Scenario** : InputTF, button MC, and a dynamicTF on the stage.

**What I want to do** :When a user inputs text into the inputTF and presses the button, any spaces are replaced with \_ and the “string” is placed in the dynamicTF.

**EG** : I type “this is an example” into the InputTF. I then press the button. The dynamicTF now reads “this\_is\_an\_example”

You might be able to see how useful this kind of process is for many projects. Plus, I’m super curious 🙂
