2 Replies Latest reply on Jun 19, 2008 4:59 AM by Gregory Lafrance

    Filtering TileList

    CBrasfield
      I have my tileList in an array that serves as the dataprovider. I would like to filter those results with an hslider. I've defined the change event on the hs with: change="doChange(event)";.

      In the array I have a field of price. If the hslider is less than that price, I want to remove any other items.

      public function tileFilter(item:Object):Boolean
      {
      var result:Boolean=false;
      if ( tileList.price <= slider.value) {
      result=true;
      } //end

      When compiling it says call to undefined property 'price'. Does that mean I need to include the array number of the tile? ie tileList <= slider.value.....eh, that's not working either.

      Any suggestions would be great.