1 Reply Latest reply on Apr 1, 2009 11:22 AM by Gregory Lafrance

    refresh image in itemrenderer


      I'm populating my tilelist with an itemrenderer. In this itemrenderer I'm having an image and textbox. The textbox is bindable, but my image isn't, because it's getting his source using the image.load method. Is there any way I can refresh my image when the datasource of the tilelist changes? (the textfield changes properly).
      Here's some examplecode.

      private function init():void {
      base64Dec = new Base64Decoder();
      base64Dec.decode(data.comiccover); //used to decode the incoming url
      byteArr = base64Dec.toByteArray();

      <mx:Image width="100" id="img" />
      <mx:Text text="{data.title}" id="txtTitle" />