View Full Version : resize pictures that are loaded dynamicly
eddepet
October 13th, 2002, 11:51 AM
Wel I know how to load pictures dynamicly into a MC, but is it also possible to resize te picture?
kirupa
October 13th, 2002, 11:59 AM
Hey eddepet,
Well, you can resize the movie clip that the pictures are contained in. By scaling the movie clip, you, in effect, re-scale the pictures as well.
//sets the movieclip's scale x and y scale to 50%
_root.movieClipName._xscale = 50;
_root.movieClipName._yscale = 50;
The above code should help to get you started. How were you planning on having the movieclip resized anyway? by a click of a button? by an action in a frame?
Cheers!
Kirupa :nerd:
pom
October 13th, 2002, 01:08 PM
You have to wait until the image is completely loaded before you can resize it though. So careful with that.
pom :)
eyezberg
October 13th, 2002, 05:30 PM
1.make clip invisible
2.load
3.check continuously until load is done
4.resize clip
5.make visible
and it will show just what you want..
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.