# \[FMX\] String to Array

**URL:** <https://forum.kirupa.com/t/fmx-string-to-array/101769>\
**Category:** Uncategorized\
**Created:** [February 13, 2004, 6:48pm UTC](https://forum.kirupa.com/t/fmx-string-to-array/101769 "2004-02-13T18:48:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![foochuck](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@foochuck](https://forum.kirupa.com/u/foochuck)\
**Post date:** [February 13, 2004, 6:48pm UTC](https://forum.kirupa.com/t/fmx-string-to-array/101769/1 "2004-02-13T18:48:29Z")

</div>

Hello,

(Using Flash MX)

I’m wondering if theres a way I can turn a variable of strings (separated by commas) into an array?

I’m using the loadVars object to import variables from a text file that I’d like to import to flash as an array.

For example if the variable I import from the text file looks like this:

&myVar=charlie,dog,cat,test&

I’d like to get it into an array in Flash like this

myArray = new Array[“charlie”,“dog”,“cat”,“test”];

Is there any way to do that? :rocker:

Thanks!
