# Passing arrays from text file

**URL:** <https://forum.kirupa.com/t/passing-arrays-from-text-file/222199>\
**Category:** flash\
**Created:** [April 11, 2007, 3:46pm UTC](https://forum.kirupa.com/t/passing-arrays-from-text-file/222199 "2007-04-11T15:46:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thybalt](https://avatars.discourse-cdn.com/v4/letter/t/e5b9ba/32.png) [@thybalt](https://forum.kirupa.com/u/thybalt)\
**Post date:** [April 11, 2007, 3:46pm UTC](https://forum.kirupa.com/t/passing-arrays-from-text-file/222199/1 "2007-04-11T15:46:47Z")

</div>

Hi all,

Can someone give me an idea on how to do the above? I am able to trace the values but it appears that it is parsed as a big chunk of string like

“apple”,“orange”,“pear”

etc

so when I tried to assign the value to an array with:

myArray = [fruits]

instead of becoming:

myArray = [“apple”,“orange”,“pear”]

instead of being able to trace(myArray[1]) to yield “orange”, I get undefined

really at my wits end so can someone help me?  
tks!:trout:
