# Resize pictures that are loaded dynamicly

**URL:** <https://forum.kirupa.com/t/resize-pictures-that-are-loaded-dynamicly/6659>\
**Category:** Uncategorized\
**Created:** [October 13, 2002, 3:51pm UTC](https://forum.kirupa.com/t/resize-pictures-that-are-loaded-dynamicly/6659 "2002-10-13T15:51:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddepet](https://avatars.discourse-cdn.com/v4/letter/e/67e7ee/32.png) [@eddepet](https://forum.kirupa.com/u/eddepet)\
**Post date:** [October 13, 2002, 3:51pm UTC](https://forum.kirupa.com/t/resize-pictures-that-are-loaded-dynamicly/6659/1 "2002-10-13T15:51:07Z")

</div>

Wel I know how to load pictures dynamicly into a MC, but is it also possible to resize te picture?

---

<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:** [October 13, 2002, 3:59pm UTC](https://forum.kirupa.com/t/resize-pictures-that-are-loaded-dynamicly/6659/2 "2002-10-13T15:59:55Z")

</div>

Hey eddepet,  
Well, you can resize the movie clip that the pictures are contained in. By scaling the movie clip, you, in effect, re-scale the pictures as well.

```php
//sets the movieclip's scale x and y scale to 50%
_root.movieClipName._xscale = 50;
_root.movieClipName._yscale = 50;

```

The above code should help to get you started. How were you planning on having the movieclip resized anyway? by a click of a button? by an action in a frame?

Cheers!  
Kirupa :nerd:

---

<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:** [October 13, 2002, 5:08pm UTC](https://forum.kirupa.com/t/resize-pictures-that-are-loaded-dynamicly/6659/3 "2002-10-13T17:08:27Z")

</div>

You have to wait until the image is completely loaded before you can resize it though. So careful with that.

pom 🙂

---

<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:** [October 13, 2002, 9:30pm UTC](https://forum.kirupa.com/t/resize-pictures-that-are-loaded-dynamicly/6659/4 "2002-10-13T21:30:16Z")

</div>

1.make clip invisible  
2.load  
3.check continuously until load is done  
4.resize clip  
5.make visible  
and it will show just what you want…
