quick question: when making a image smaller through actionscript, is there a way to keep the height to width pixel ratio and keep it a good resolution? a.k.a so it's nots all pixelated and shows it's obviously been de-scaled.
cheers
GRIMESD
Aug 19 2009, 08:39 AM
The only way you would be able to do this is to is to make sure that you decrease your x and y proportionally to keep image restraints.
For example... If you have an image that is 800 x 600. And you want that image to be at a width of 500 instead..
Bad Code .. >
CODE
whatever.x = 500; whatever.y = 600;
Good Code ..>
CODE
whatever.x = 500; whatever.y = 300;
good luck!
dragonjeteo
Aug 25 2009, 08:50 PM
have you tried using the movieclips's _xscale and _yscale properties?
CODE
mc._xscale = 60; mc._yscale = 60;
the number sould be the percentage you want it scaled. 100 is the original size. Cheers blues!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.