3 Replies Latest reply on Dec 13, 2008 5:54 PM by *gsb*

    Array into a Text

    manofspirit Level 1
      Following Code Works for Me

      var tempArray:Array = ThemeGenerator.getColours();
      infome.text = tempArray.join("\n");

      But is there any way to do the same thing without using an intermediate array in a single line?
      infome.text = Array(ThemeGenerator.getColours()).join("\n");

      Thanks in advance