# Dinamicly changing of properties (image sourse) of movieclip

**URL:** <https://forum.kirupa.com/t/dinamicly-changing-of-properties-image-sourse-of-movieclip/291820>\
**Category:** flash\
**Created:** [July 6, 2009, 11:20am UTC](https://forum.kirupa.com/t/dinamicly-changing-of-properties-image-sourse-of-movieclip/291820 "2009-07-06T11:20:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbabanli](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@sbabanli](https://forum.kirupa.com/u/sbabanli)\
**Post date:** [July 6, 2009, 11:20am UTC](https://forum.kirupa.com/t/dinamicly-changing-of-properties-image-sourse-of-movieclip/291820/1 "2009-07-06T11:20:50Z")

</div>

Hi professionals,  
I did small flash where i exported layers from Photoshop and converted them into movieclips. currently i need to change they image source to other when i click on button.  
this one is required to make swf file smaller to load files after loading swf file itself.  
please help me in this problem.  
i found in this forum some codes and used but  
i found how to do it but in this case i cant change size of picture.

```auto
function img5(e:MouseEvent):void{    
    var imageLoader:Loader = new Loader();
    var imageRequest:URLRequest = new URLRequest("images/Water lilies.jpg");
    imageLoader.load(imageRequest);
    var new_mc = t23.addChild(imageLoader);
    new_mc.x=50;
    new_mc.y=50;
} 

```

old MC is staying there.  
please help me to complete code  
i need just to change picture of MC and keep all of other properties same.

Thanks in advance  
Said
