2 Replies Latest reply on Oct 10, 2006 7:53 AM by cimaea

    How to find out if list contains text?

    cimaea
      I am using the following code with a list component in Flash 8:

      [code]
      my_list.change = function(evt:Object) {
      getURL(evt.target.selectedItem.data);
      };
      my_list.addEventListener("change", my_list);
      [/code]

      I would like to define 2 behaviors - one geturl in blank window and one geturl in self - depending on whether the list data for the particular entry contains "pdf". Is it somehow possible to do this?

      Many thanks in advance