PDA

View Full Version : Dynamic resizing + Bitmap Smoothing


shackz
04-13-2008, 07:04 PM
I am searching for some suggestions how to do dynamic resizing of external loaded content (images/swf) and Bitmap Smoothing in AS 3.

the resizing/scaling should be done with tweening and some easing method.

hope you can help again,

tnx for far

Gambyt
04-13-2008, 08:52 PM
with like flash.text.TextFieldAutoSize?

set as imported class


import flash.text.TextFieldAutoSize;



//in your code:

for (var i:int = 0; i < _myobject.length(); i ++) {
_myobject.parentMC = new myObject.autoSize = TextFieldAutoSize.LEFT;
_myobject..parentMC.condeseWhite = true; //or false
_myobject.parent.MC.styleSheet = style; //you can draw in a CSS to organize your text fields


this is for text but now you are looking for images/ imageAutoSize would be an imported class document to handle the autosizing on your main doc. either your main stage controller class.