11 Replies Latest reply on Apr 16, 2009 2:59 PM by kglad

    Create a blank line

    TheScarecrow Level 1

      I have a XML files that is being read in to Actionscript and as it runs the script and collects the results I want it to go to the next line for the next result.  I am not sure how to do this.  (See code).  RIght now it create the items in the list like this

       

      item1, item2, item3, item4

       

      I want the result to be

       

      item1

      item2

      item3

      item4

       

       

      Help?

       

      // GROUPS
              var videos = this.childNodes[0];
              var videolists = {};
              groupNav = [];
              for ( var i = 0; i < videos.childNodes.length; i++ ) {
                  var entry = entries.childNodes[i];
                  if ( entry.nodeName == "groups" ) {
                      //builds array of video clip names
                      for ( var j = 0; j < videos.childNodes.length; j++ )
                          groupNav[j] = entry.childNodes[j].attributes.name;
                          //videolists[entry.attributes.name] = entry;
                          trace(groupNav);
                     
                  }
              }