# Resize etc. movieclip when loading jpg

**URL:** <https://forum.kirupa.com/t/resize-etc-movieclip-when-loading-jpg/61842>\
**Category:** Uncategorized\
**Created:** [August 22, 2004, 3:23pm UTC](https://forum.kirupa.com/t/resize-etc-movieclip-when-loading-jpg/61842 "2004-08-22T15:23:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![murka390](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@murka390](https://forum.kirupa.com/u/murka390)\
**Post date:** [August 22, 2004, 3:23pm UTC](https://forum.kirupa.com/t/resize-etc-movieclip-when-loading-jpg/61842/1 "2004-08-22T15:23:14Z")

</div>

i have 2 types of .jpg’s. wide ones and high ones… what i need is that when i load a high .jpg file, movieclip height and width will accordingly 274 and 200  
and when i load a wide .jpg, then vica versa (w - 274 , h - 200).BUT the bottom border must stay in the same place, it only goes wider or shorter.  
like this: [http://www.hot.ee/murka390/sample.swf](http://www.hot.ee/murka390/sample.swf)

i’m loading the picture in a movieclip with this:

algus = \_root[“t”+\_parent.\_parent.\_currentframe];  
loadMovie(“valmis/”+algus+".jpg", \_pilt);

somebody please help me.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 22, 2004, 4:35pm UTC](https://forum.kirupa.com/t/resize-etc-movieclip-when-loading-jpg/61842/2 "2004-08-22T16:35:24Z")

</div>

actually i only need to measure the width and height of the .jpg to be loaded. The rest is already clear.  
how can i know the width and height of the external .jpg?
