# Help - defining eventHandlers for dynamically created movies

**URL:** <https://forum.kirupa.com/t/help-defining-eventhandlers-for-dynamically-created-movies/172981>\
**Category:** flash\
**Created:** [December 20, 2005, 1:49am UTC](https://forum.kirupa.com/t/help-defining-eventhandlers-for-dynamically-created-movies/172981 "2005-12-20T01:49:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobomangoboy](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@bobomangoboy](https://forum.kirupa.com/u/bobomangoboy)\
**Post date:** [December 20, 2005, 1:49am UTC](https://forum.kirupa.com/t/help-defining-eventhandlers-for-dynamically-created-movies/172981/1 "2005-12-20T01:49:35Z")

</div>

I am dynamically creating movies, and I want a specific load function and mouseUp function to be applied to each instance,  
my code however, doesn’t work so far - the trace never shows up  
any ideas?

createEmptyMovieClip(“side”,9);  
loadMovie(“image.jpg”,\_root[“side”]);

\_root[“side”].onLoad = function(){  
trace(“hi”);  
}
