1 Reply Latest reply on Sep 20, 2007 3:25 AM by AScracker

    array is sorted backwards, and contains unwanted fields?....

    Level 7
      Hi all

      I am creating an array from the flashVars passed from html.

      the string in the html flashVars params looks like this:

      var1=01.jpg|02.jpg|03.jpg&var2=01.jpg|02.jpg

      So basically each var is a list of images separated with the bar sign "|"

      I am succesfully retreiving the flashVars into an actionScript array, then I create a new array of
      the listed images, using the split function:

      for(var sVar in flashVars){
      var stringVal = flashVars[sVar];
      images = stringVal.split("|");
      }

      Now, when I loop through the images array and output the result, I get these values, in this order:

      [type Function]
      03.jpg
      02.jpg
      01.jpg

      What is [type Function] and how did it get in my array?
      Then, why are the array values sorted in reverse order (last image is first, first image is last)?....

      I hope you can help.

      --
      seb ( ---@webtrans1.com)
      http://webtrans1.com | high-end web design

      An Ingenious WebSite Builder: http://sitelander.com