vectors become pixelated when scaled

Commenta 16th November , 2009
Hi

I’m trying to scale down some vectors but when i do they become pixelated. So I tried putting then in a container and scaling down the container, but pixelation still occurs.

can anyone tell me why this is happening and a possible work around?

Thanks.

Here is the function from my class:

private function addItems():void
{
addChild(itemsContainer);
// make the items.
for(var i in xml.item){

var itemRandomX:Number = stage.stageWidth – 400;
var itemRandomY:Number = stage.stageHeight – 300;
var itemRandomZ:Number = 1000;

itemRandomX = Math.round(Math.random() * itemRandomX);
itemRandomY = Math.round(Math.random() * itemRandomY);
itemRandomZ = Math.round(Math.random() * itemRandomZ);

itemRandomX = itemRandomX + 200;
itemRandomY = itemRandomY + 150;
itemRandomZ = itemRandomZ + 100;

var itemButton:ItemButton = new ItemButton();

//itemButton.scaleX = .15;
//itemButton.scaleY = .15;

itemsContainer.addChild(itemButton);

itemButton.x = itemRandomX;
itemButton.y = itemRandomY;
itemButton.z = itemRandomZ;

itemsContainer.scaleX = .25;
itemsContainer.scaleY = .25;

itemButton.addEventListener(MouseEvent.MOUSE_OVER, itemButtonRollOver);
itemButton.addEventListener(MouseEvent.MOUSE_OUT, itemButtonRollOut);
itemButton.addEventListener(MouseEvent.CLICK, itemButtonClick);

}

Original post by ashfinlayson

Lascia un Commento