4 Replies Latest reply on Aug 27, 2006 11:51 PM by OniLink

    list.selectedItems Array

    OniLink Level 1
      I am using the following code:

      var categories:Array = new Array();
      categories = maincat.selectedItems;
      dbQuery.main_cat = categories[0];
      trace(dbQuery.main_cat) // returns: [object Object]

      What I can't understand is why when I trace dbQuery.main_cat do I get "[object Object]". Shouldn't it return the first selected item of the list??

      Any help would be appreciated.