1 Reply Latest reply on Apr 5, 2007 8:08 AM by Newsgroup_User

    How to receive the original _width and _height of an external image

    chrisatflash Level 1
      Hello,
      When i load an external image (.jpg) how can i trace the original height and width of
      this image?

      I already made a MoveiClip loader, so i can fire a function when the image is loaded completely.
      But i don't know how to get this value of the original image size, because i placed this
      image in a container_mc.

      Does someone know how ?

      Regards,
      Micheal
        • 1. Re: How to receive the original _width and _height of an external image
          Level 7
          your 'container_mc' recieves the exteral image's original size, thus you can
          easily find out your image's size
          (unless the container's x & y scale aren't 100% - in that case u need to
          first set it back to 100% and then u can enquire the size).
          eRez
          "Michealnl" <webforumsuser@macromedia.com> wrote in message
          news:ev32nf$h0t$1@forums.macromedia.com...
          > Hello,
          > When i load an external image (.jpg) how can i trace the original height
          > and
          > width of
          > this image?
          >
          > I already made a MoveiClip loader, so i can fire a function when the image
          > is
          > loaded completely.
          > But i don't know how to get this value of the original image size, because
          > i
          > placed this
          > image in a container_mc.
          >
          > Does someone know how ?
          >
          > Regards,
          > Micheal
          >