Skip to main content
March 14, 2011
Question

stretching an dynamically imported image in a bound mc

  • March 14, 2011
  • 1 reply
  • 398 views

Hi all,

I am importing an image dynamically with following code into my mc :

....

var urlRequest5=new URLRequest( ... );

var imageLoader5=new Loader();

imageLoader5.load(urlRequest5);

smaglabel.addChild(imageLoader5);

.....

the code above is working properly but the image is not imported within the box i created. It aligns whatever it's size is. For example, i create a small box and a bit skewed, but the image is shown as big (original) size.

How can i stretch it in my designed mc?

Thanks for all help...

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 14, 2011

when loading is complete (use a listener), you can resize your loader (and thereby its content).