2 Replies Latest reply on May 29, 2012 11:00 PM by 56231

    What address to use so datafield can locate image?

    56231 Level 1

      The dataField gets the values from the XML tags generated by PHP. All the values show up. The images display correctly only if they're placed in the same folder as the Flex files and the dataField reads: dataField="imagename">


      If I place the images in the pics folder (content/pics) and use this address:


      The images show a broken image display. I tried using a full (htp://wwwdotthissite.com/main/content/pics), but it still doesn't work. What am I missing here? Thanks.


      Here is the folder structure:


         content/pics/  All the images in here.

         flex/  All the flex files in here.



      echo "<image>";

      echo "<image_no>$imageNo</image_no>";

      echo "<imagename>$imageName</imagename>";

      echo "<text>$text</text>";

      echo "</image>


      <mx:DataGrid id="imagesDG"  dataProvider="{image}">


      <mx:DataGridColumn headerText="imgNo" dataField="image_no" width="30"/>

      <mx:DataGridColumn headerText="Image" width="80"




                         <mx:Image width="45" height="45"/>




      <mx:DataGridColumn headerText="Text" dataField="text" />