# \[MX\] Resize border to fit dynamic image?

**URL:** <https://forum.kirupa.com/t/mx-resize-border-to-fit-dynamic-image/106834>\
**Category:** Uncategorized\
**Created:** [April 9, 2004, 9:11am UTC](https://forum.kirupa.com/t/mx-resize-border-to-fit-dynamic-image/106834 "2004-04-09T09:11:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maestro](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/maestro/32/478_2.png) [@maestro](https://forum.kirupa.com/u/maestro)\
**Post date:** [April 9, 2004, 9:11am UTC](https://forum.kirupa.com/t/mx-resize-border-to-fit-dynamic-image/106834/1 "2004-04-09T09:11:44Z")

</div>

I have a background with a border that is behind dynamic images. I am trying to resize the background to custom fit each jpg that is loaded. However, I cannot get the width/height from the movieclip the jpgs are loaded into and I can’t get the width/height from the jpgs. Anyone have any advice?

Here is what I tried:

setProperty("\_root.serve\_contents.photo\_button.photo\_background\_image.subpages.photo\_examples\_bg", \_height, getProperty(“examples/photo/event/amcel\_medium.jpg”, \_height));

and/or

setProperty("\_root.serve\_contents.photo\_button.photo\_background\_image.subpages.photo\_examples\_bg", \_height, getProperty(“photo\_loader”, \_height));

Thanks,  
-Brandon
