Copy link to clipboard
Copied
Hello,
i have a movieclip and then "inside" i have as image. The problem is that i want to resize it and i can't!
Here's the code:
var ImageClass:Class = getDefinitionByName("image") as Class;
var image:Bitmap = new Bitmap(new ImageClass(100,100));
mcImage.height=100;
mcImage.width=100;
mcImage.scaleY=mcImageLeft2.scaleX;
mcImage.addChild(image); // add image to MovieClip
addChild(mcImage); // add MovieClip to Stage
Can anyon help?
Thanks
use:
var ImageClass:Class = getDefinitionByName("image") as Class;
var image:Bitmap = new Bitmap(new ImageClass(100,100));
mcImage.addChild(image); // add image to MovieClip
mcImage.height=100;
mcImage.width=100;
mcImage.scaleY=mcImageLeft2.scaleX;
addChild(mcImage); // add MovieClip to Stage
Copy link to clipboard
Copied
use:
var ImageClass:Class = getDefinitionByName("image") as Class;
var image:Bitmap = new Bitmap(new ImageClass(100,100));
mcImage.addChild(image); // add image to MovieClip
mcImage.height=100;
mcImage.width=100;
mcImage.scaleY=mcImageLeft2.scaleX;
addChild(mcImage); // add MovieClip to Stage
Copy link to clipboard
Copied
Thank's... it works it was a simples thing but... you know eheheh
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now