0 Replies Latest reply on Feb 25, 2009 2:22 PM by iet3

    Image path

      I have an image that I am trying to determine the path using a return from a function.... I can type the path in to the image source with no problem, but I need the image to change depending on if the item is selected in the grid or not. Anyone know a solution? Thanks in advance!

      Below is the code:

      the image part:
      <mx:Image source="getRowIcon(data)"/>

      and the function:
      private function getRowHasIcon(item:Object):Boolean{
      return getRowIcon(item) != "";
      private function getRowIcon(item:Object){
      if (item.isCurrent){
      return "images/speaker.png"
      return "images/noSpeaker.png";