# Detect when an external image is loaded

**URL:** <https://forum.kirupa.com/t/detect-when-an-external-image-is-loaded/190705>\
**Category:** Uncategorized\
**Created:** [June 14, 2006, 1:32am UTC](https://forum.kirupa.com/t/detect-when-an-external-image-is-loaded/190705 "2006-06-14T01:32:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BlackBeltNinja](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/blackbeltninja/32/1180_2.png) [@BlackBeltNinja](https://forum.kirupa.com/u/BlackBeltNinja)\
**Post date:** [June 14, 2006, 1:32am UTC](https://forum.kirupa.com/t/detect-when-an-external-image-is-loaded/190705/1 "2006-06-14T01:32:11Z")

</div>

my code creates a new movie clip and then uses loadMovie(“picture.jpg”); to load an external picture into it. my problem is I can’t figure out how to resize the picture after it loads. when I use onLoad = function() or onData nothing happens. how do I fix this?
