# .onLoadComplete No can do?

**URL:** <https://forum.kirupa.com/t/onloadcomplete-no-can-do/49903>\
**Category:** flash\
**Created:** [April 27, 2004, 7:22pm UTC](https://forum.kirupa.com/t/onloadcomplete-no-can-do/49903 "2004-04-27T19:22:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![said7](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@said7](https://forum.kirupa.com/u/said7)\
**Post date:** [April 27, 2004, 7:22pm UTC](https://forum.kirupa.com/t/onloadcomplete-no-can-do/49903/1 "2004-04-27T19:22:01Z")

</div>

I working on some dynamic loading and I want execute a function after the image is loaded…

myMc.loadMovie(“pageimage.jpg”);  
myMc.onLoadComplete = function() {  
trace(“run this”);  
};

The onload complete will not work in such an instance. I know i could just do a (if getbytestotal = bytesloaded…) but im trying to learn a little here 🙂

Am i correct in assuming that i would have to add a listener to make this work?  
any ideas?
