I am creating a spelling puzzle in flash that retrieves words from an xml file and stores them in var wordList. The array will contain a different number of values each time the user creates the xml file through a html form. for example say wordList contains the following values:red, blue, brownI need to then pass each value into an array called words so that array reads["red","blue", "blue"];\[code\]var wordList:XMLList = puzzleInput.Word.puzWord; for (var i:int = 0; i < wordList.length(); i++) { var wordElement:XML = wordList; wordList.push; trace(wordList); } }\[/code\]The problem is that once the loop ends I can no longer access the values of the arrayList. I understand in java I could store the values in a string, add them to another array and iterator around the array but I have been unable to get a similar solution working in Actionscript\[code\] for (int i = 0; i < wordList.length; i++) { wordElement = wordList; for(String g: wordElement){ words.add(g); // words being the second array } } int i=0; for(String x1:words){ System.out.println("words: " + i + x1); i++; }\[/code\]