# setSelection

**URL:** <https://forum.kirupa.com/t/setselection/12037>\
**Category:** Uncategorized\
**Created:** [January 25, 2003, 8:58pm UTC](https://forum.kirupa.com/t/setselection/12037 "2003-01-25T20:58:59Z")\
**Posts on this page:** 6\
**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 25, 2003, 8:58pm UTC](https://forum.kirupa.com/t/setselection/12037/1 "2003-01-25T20:58:59Z")

</div>

how does one use the setSelection command to highlight text, because the help files are not useful as they do not provide any examples

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 2:55pm UTC](https://forum.kirupa.com/t/setselection/12037/2 "2003-01-27T14:55:08Z")

</div>

see this as an example: [http://proto.layer51.com/d.aspx?f=639](http://proto.layer51.com/d.aspx?f=639)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 2:56pm UTC](https://forum.kirupa.com/t/setselection/12037/3 "2003-01-27T14:56:17Z")

</div>

Hi zkac050,

You might try to use Selection.setFocus; and then Selection.setSelection();

[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary643.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary643.html)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 3:41pm UTC](https://forum.kirupa.com/t/setselection/12037/4 "2003-01-27T15:41:59Z")

</div>

the thing is , the selection only allows you to select one highlighted but when i tried to do multiple selections, it would only highlight the last selection. Is there any way to do multiple selections?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 3:55pm UTC](https://forum.kirupa.com/t/setselection/12037/5 "2003-01-27T15:55:44Z")

</div>

only one selection at a time

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [January 27, 2003, 4:12pm UTC](https://forum.kirupa.com/t/setselection/12037/6 "2003-01-27T16:12:43Z")

</div>

■■■■, then there is no way of selecting more than one
