2 Replies Latest reply on Mar 19, 2007 3:01 PM by EliteScientist

    Dynamic Image

    chieffan
      I am using the image component and want to change it based on data displayed in my data grid. It is not in my grid. I am trying feedRequest.lastResult.hbaparade.fall2006parade.Pic

      <mx:Image x="544" y="54" id="image" source="'../../2006fallimages/+feedRequest.lastResult.hbaparade.fall2006parade.Pic'"/>

      Also, any info as to changing the photo on a change in the data grid would be nice too. Thanks.
        • 1. Re: Dynamic Image
          golubeva
          You might have to create a new function that will assign the "source" to your image component. You can call that function in the "change" attribute of the data grid.
          • 2. Re: Dynamic Image
            EliteScientist Level 1
            try:

            <mx:Image x="544" y="54" id="image" source="'../../2006fallimages/' + {feedRequest.lastResult.hbaparade.fall2006parade.Pic}"/>

            if that doesn't work try putting the complete URL in Pic and using:

            <mx:Image x="544" y="54" id="image" source="{feedRequest.lastResult.hbaparade.fall2006parade.Pic}"/>

            or doing what the guy said above...