Skip to main content
Participant
October 17, 2006
Answered

Sizing Dynamically loaded images

  • October 17, 2006
  • 1 reply
  • 188 views
I've loaded images into a project at runtime they show, but when I try to resize them they are set as a percentage of the original size and not the pixel size. I've tried using setProperty and object._width= and object._height=. Every place I've read anything about the _width and _height properties says it should set those values in pixels, but for some reason it's percentage for me.
I'm loading .jpg images
have flash 8 pro
How can I set the picture width and height in pixels?
This topic has been closed for replies.
Correct answer Craig Grummitt
you need to ensure that the picture is loaded(preferably using MovieClipLoader.onLoadInit) before resizing.

1 reply

Craig Grummitt
Craig GrummittCorrect answer
Inspiring
October 17, 2006
you need to ensure that the picture is loaded(preferably using MovieClipLoader.onLoadInit) before resizing.