1 Reply Latest reply on Jan 16, 2008 4:12 AM by peterent

    Event after setting source on mx:image

    Ukie_239 Level 1
      is there an event that fires after you set the source of an image tag. I need to reposition the image, based on the size of it

      Curtis
        • 1. Re: Event after setting source on mx:image
          peterent Level 2
          There are a couple of things you can do. First, set the image's visible property to false. Then add an event listener for "complete" - this will be fired when the image data has been loaded. Once the event handler has been called, you get the image's content's width and height and then set the image's visible property to true.