Scale a movie clip with HTML5 JS code with no loss of resolution
Hi Animate,
I have a game where you click on a button and that scales another movie clip on the stage. I can get this to work with code, but the upscaled movie clip becomes pixelated (see JPG). Is there any way to make the clip scale up and maintain its resolution? It should be scalable as it is vector art. Thanks. Here's my code.
Zaffer
this.grow_btn.addEventListener("click", growSomeFlower.bind(this));
function growSomeFlower()
{
currentClickedFlower.scaleX = currentClickedFlower.scaleX * 1.2;
currentClickedFlower.scaleY = currentClickedFlower.scaleY * 1.2;
}
this.shrink_btn.addEventListener("click", shrinkSomeFlower.bind(this));
function shrinkSomeFlower()
{
currentClickedFlower.scaleX = currentClickedFlower.scaleX * 0.8;
currentClickedFlower.scaleY = currentClickedFlower.scaleY * 0.8;
} 

