# setSelection

**URL:** <https://forum.kirupa.com/t/setselection/11962>\
**Category:** flash\
**Created:** [January 24, 2003, 4:31pm UTC](https://forum.kirupa.com/t/setselection/11962 "2003-01-24T16:31:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zkac050](https://avatars.discourse-cdn.com/v4/letter/z/b2d939/32.png) [@zkac050](https://forum.kirupa.com/u/zkac050)\
**Post date:** [January 24, 2003, 4:31pm UTC](https://forum.kirupa.com/t/setselection/11962/1 "2003-01-24T16:31:56Z")

</div>

How do you use the selection.setSelection(a,b) function to highlight areas of text, cos i saw this in a book but it doesnt seem to work.
