# Getting selected text

**URL:** <https://forum.kirupa.com/t/getting-selected-text/243368>\
**Category:** flash\
**Created:** [November 6, 2007, 10:16am UTC](https://forum.kirupa.com/t/getting-selected-text/243368 "2007-11-06T10:16:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![theSchtickler](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@theSchtickler](https://forum.kirupa.com/u/theSchtickler)\
**Post date:** [November 6, 2007, 10:16am UTC](https://forum.kirupa.com/t/getting-selected-text/243368/1 "2007-11-06T10:16:32Z")

</div>

Hi,

Is there any way to make flash return what text you have selected?

Say I have a textbox, with a bunch of text in it. I want to be able to highlight a word, and click a button and make the highlighted text capitals? I know there is a replace selected text function, but how can I work out what text is actually selected?

Any ideas anyone?
