# How to put multiple selected items of a list to an array?

**URL:** <https://forum.kirupa.com/t/how-to-put-multiple-selected-items-of-a-list-to-an-array/267743>\
**Category:** flash\
**Created:** [August 5, 2008, 10:45am UTC](https://forum.kirupa.com/t/how-to-put-multiple-selected-items-of-a-list-to-an-array/267743 "2008-08-05T10:45:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex298](https://avatars.discourse-cdn.com/v4/letter/a/76d3ee/32.png) [@alex298](https://forum.kirupa.com/u/alex298)\
**Post date:** [August 5, 2008, 10:45am UTC](https://forum.kirupa.com/t/how-to-put-multiple-selected-items-of-a-list-to-an-array/267743/1 "2008-08-05T10:45:52Z")

</div>

Hello,

I tried to use a List to do something. I know how to add items to the list. Here’s my codes:

> 

import fl.controls.List;  
import fl.events.ListEvent;

//Add Items to List  
myList.addItem( {label: “Item 1” } );  
myList.addItem( {label: “Item 2” } );  
myList.addItem( {label: “item 3” } );  
myList.addItem( {label: "Item 4 } );  
myList.addItem( {label: “Item 5” } );

myList.allowMultipleSelection = true;

The list allow users to select multiple items. My question is:

When a user select multiple items (e.g. Item 1, Item 3 and Item 4). How can I put the selected items into an Array for further manipulation.

P.S. I know how to put the selected items into another list. However this is not what I want.

Thanks and best regards

Alex
