Controlling image size on load to MC
Hi,
I am dynamically loading images into a preposoitioned and sized MC. The image is larger than the MC but same proportions. What I would like to do is have the image load at the same size as the MC or be scaled to fit it.
Currently it comes in at original size and overflows the MC size. Is there a setting for the properties of the MC properties that I am missing?
I am using this code:
var imageID = 'images/small/HF0000_004.jpg';
var p = new createjs.Bitmap(imageID);
//here I want to size the image to the MC
this.addChild(p);
this.play();
The code is in the first frame of the MC instance
Any help appreciated.