4 Replies Latest reply on Aug 25, 2007 6:42 AM by darrylfrith

    This doesn't make any sense

    darrylfrith Level 1
      I'm using an http request to populate a datagrid. one of the values I'm retrieveing is an image name and location. The code I tried is below. if I hard code an image location into source="". it works but if I use the variable 'icon'. it does not. If I put icon in a text column URL it appears like what I have hard coded in source. it does not make sense to me anyone see what I am doing wrong?

      <mx:DataGrid id="dgUserRequest" x="10" y="10" dataProvider="{friend_result.friends.friend_data}" width="209" height="217" textAlign="left" fontSize="12" resizableColumns="false" click="viewFriendData();">
      <mx:DataGridColumn width="50" headerText="">
      <mx:Image horizontalAlign="center" source = "icon" >

      <mx:DataGridColumn headerText="URL" dataField="icon"/>
      <mx:DataGridColumn headerText="Friends" dataField="name"/>
      <mx:DataGridColumn width = "0" headerText="friend_id" dataField="id"/>