3 Replies Latest reply on Oct 13, 2009 11:15 AM by kgladwin

    Loading images dynamically

    kgladwin Level 1

      Hi,

       

      This is my code.

       

      [Embed(source="C:/images/temp.jpg")]
      var uploadedImage:String;
      imgPhoto.source = uploadedImage;

       

      Every time the image changes, I need to dynamically load the new image. But flex seems to cache the image somewhere.

      I cannot get the new image to display. Any suggestions. Thank You.