# Splitting an array into multiple variables

**URL:** <https://forum.kirupa.com/t/splitting-an-array-into-multiple-variables/235172>\
**Category:** Uncategorized\
**Created:** [August 9, 2007, 1:03am UTC](https://forum.kirupa.com/t/splitting-an-array-into-multiple-variables/235172 "2007-08-09T01:03:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dragonknight](https://avatars.discourse-cdn.com/v4/letter/d/a6a055/32.png) [@Dragonknight](https://forum.kirupa.com/u/Dragonknight)\
**Post date:** [August 9, 2007, 1:03am UTC](https://forum.kirupa.com/t/splitting-an-array-into-multiple-variables/235172/1 "2007-08-09T01:03:51Z")

</div>

i know how to use arrays in a flash file but i’m not sure if i can split it into multiple from an input text box:

```auto
stop();
getcode = [_root.colorskin, _root.coloreyes, _root.colorwing, _root.eyes, _root.mouth];
function post() {
    dragonarray = [postcode.text];
    _root.thing = dragonarray.length;
    trace(_root.thing);
}

```

when it traces the code it says 1

😕

is it possible to split the input box text up like an array?  
and split the array up into multiple variables like this:  
input box text: 26112,39423,13998489,3,3  
\_root.variable1= 26112  
\_root.variable2= 39423  
etc  
etc…

can somebody help please?
