# Asign onRollOver function to movie clip

**URL:** <https://forum.kirupa.com/t/asign-onrollover-function-to-movie-clip/164911>\
**Category:** Uncategorized\
**Created:** [October 5, 2005, 11:03pm UTC](https://forum.kirupa.com/t/asign-onrollover-function-to-movie-clip/164911 "2005-10-05T23:03:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![beenetto](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@beenetto](https://forum.kirupa.com/u/beenetto)\
**Post date:** [October 5, 2005, 11:03pm UTC](https://forum.kirupa.com/t/asign-onrollover-function-to-movie-clip/164911/1 "2005-10-05T23:03:25Z")

</div>

is there any vay to assign functions to MCs after I load externel jpg  
into them?  
This is what I mean.

var mclListener:Object = new Object();  
var thb\_mcl = new MovieClipLoader();  
function ld\_mov1() {  
for (i=1; i\<=16; i++) {  
thb\_mcl.loadClip("./paintings/"+i+".jpg", “thb”+i+"\_mc");  
eval(“thb”+i+"\_mc").onRollOver = function(){  
trace(something)  
}  
}  
}

well, this works fine before I load the JPGs.  
is there any solution for this?
