# Automatic resize of dynamic images?

**URL:** <https://forum.kirupa.com/t/automatic-resize-of-dynamic-images/55853>\
**Category:** Uncategorized\
**Created:** [June 28, 2004, 2:08pm UTC](https://forum.kirupa.com/t/automatic-resize-of-dynamic-images/55853 "2004-06-28T14:08:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![they\_played\_tri](https://avatars.discourse-cdn.com/v4/letter/t/ac8455/32.png) [@they\_played\_tri](https://forum.kirupa.com/u/they_played_tri)\
**Post date:** [June 28, 2004, 2:08pm UTC](https://forum.kirupa.com/t/automatic-resize-of-dynamic-images/55853/1 "2004-06-28T14:08:40Z")

</div>

Hello once again.

Im looking to get a dynamically loaded image to automatically rescale into a certain area. The code that I have once a sub section on my combobox has been clicked is as follows.

```php
 
function setSubComboArray() {
 mySelectedItem = main_cb.getSelectedItem().data;
 title.text = main_cb.getSelectedItem().label;
 // trace(mySelectedItem+"/"+mySelectedItem+".jpg");
 loadMovie(mySelectedItem+"/"+mySelectedItem+".jpg", "_picWin");
 loadVariablesNum(mySelectedItem+"/"+mySelectedItem+".txt", 0);
}

```

I am trying to get all images that i have within the selected folder to automatically resize. I dont really want to do this in a photoediting programme, but at the moment i can see no other option. Can anyone help me out on this.
