# Re Sizing Dynamicaly loaded Images

**URL:** https://forum.kirupa.com/t/re-sizing-dynamicaly-loaded-images/50107
**Category:** flash
**Created:** [April 29, 2004, 1:56pm UTC](https://forum.kirupa.com/t/re-sizing-dynamicaly-loaded-images/50107 "2004-04-29T13:56:09Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![BaNa](https://avatars.discourse-cdn.com/v4/letter/b/7ab992/32.png) [@BaNa](https://forum.kirupa.com/u/BaNa)
#### Post date: [April 29, 2004, 1:56pm UTC](https://forum.kirupa.com/t/re-sizing-dynamicaly-loaded-images/50107/1 "2004-04-29T13:56:09Z")

</div>

[font=verdana, arial, helvetica][size=2]I am dynamically Loading a .jpg to a Movie Clip. The \_mc is 160x130 pixels and the .jpg is 330 x 280.

The problem is this:  
loadMovie(“data/Image1.jpg”, Image1\_mc);  
works fine but the Image1.jpg doesn’t fit inside the Image1\_mc

Would there be a better way of importing an image to the Scene and resizing it.

I also want to make a button over effect so that the dynamically loaded image will show in a larger frame when the user wishes to see an enlargement of a thumbnail image.

So far I have used:  
\_root.Image1\_btn.onRollOver = function() {  
loadMovie(“data/Image1.jpg”, Large\_mc);  
}  
But this then reloads Image1.jpg (freshly) into the Large\_mc from the dynamic source and again fails to size the image.[/size][/font]  
[font=verdana, arial, helvetica][size=2][/size][/font]

[font=verdana, arial, helvetica][size=2]By the way before any one says \_xscale the mc is no good for this project. Setting \_width properties of the loaded Jpegs would be great but the command doesn’t seem to effect the loaded image[/size][/font]  
[font=verdana, arial, helvetica][size=2][/size][/font]  
[font=verdana, arial, helvetica][size=2][/size][/font]  
[font=verdana, arial, helvetica][size=2]BaNa  
[/size][/font]
