# Resizing a MC according to the loaded asset (jpg, swf...)

**URL:** https://forum.kirupa.com/t/resizing-a-mc-according-to-the-loaded-asset-jpg-swf/262727
**Category:** flash
**Created:** [June 9, 2008, 2:55pm UTC](https://forum.kirupa.com/t/resizing-a-mc-according-to-the-loaded-asset-jpg-swf/262727 "2008-06-09T14:55:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jerome\_chevreau](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@jerome\_chevreau](https://forum.kirupa.com/u/jerome_chevreau)
#### Post date: [June 9, 2008, 2:55pm UTC](https://forum.kirupa.com/t/resizing-a-mc-according-to-the-loaded-asset-jpg-swf/262727/1 "2008-06-09T14:55:38Z")

</div>

Hi,

I have tried many things but when i load my external jpg inside a MC (thru the use of a MovieCliploader which then load the jpg inside that MC in an empty MC).  
I have put my code in the onLoadInit() and did something like

MC.\_width = target.\_width;

My MC has a specified width and height in the library. is it because of that or should i put it smaller.

---

<div class="post-metadata">

### Author: ![brndn](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@brndn](https://forum.kirupa.com/u/brndn)
#### Post date: [June 9, 2008, 4:48pm UTC](https://forum.kirupa.com/t/resizing-a-mc-according-to-the-loaded-asset-jpg-swf/262727/2 "2008-06-09T16:48:57Z")

</div>

target.\_width = MC.\_width;??
