# Problem with onRollover and loadClip

**URL:** <https://forum.kirupa.com/t/problem-with-onrollover-and-loadclip/234682>\
**Category:** Uncategorized\
**Created:** [August 4, 2007, 5:03pm UTC](https://forum.kirupa.com/t/problem-with-onrollover-and-loadclip/234682 "2007-08-04T17:03:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rondog](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rondog/32/2478_2.png) [@rondog](https://forum.kirupa.com/u/rondog)\
**Post date:** [August 4, 2007, 5:03pm UTC](https://forum.kirupa.com/t/problem-with-onrollover-and-loadclip/234682/1 "2007-08-04T17:03:01Z")

</div>

Can you not initiate events with jps and loaded clips?

I am trying just to do a basic roll over function and its not working

```auto

function loadItem(itemID) {
    newsTitle = _root.newsxml.firstChild.childNodes[itemID].childNodes[0].firstChild.nodeValue;
    newsDate = _root.newsxml.firstChild.childNodes[itemID].childNodes[1].firstChild.nodeValue;
    newsArticle = _root.newsxml.firstChild.childNodes[itemID].childNodes[2].firstChild.nodeValue;
    var imageLength = _root.newsxml.firstChild.childNodes[itemID].childNodes[3].childNodes.length;
    thumbDepth = 9999;
    for (i=0; i<imageLength; i++) {
        this.newsThumbHolder.createEmptyMovieClip("newsThumb"+i,thumbDepth++);
        newsThumbHolder["newsThumb"+i]._x = i*105;
        var theNewsThumb = _root.newsxml.firstChild.childNodes[itemID].childNodes[3].childNodes*.attributes.thumb;
        thumbMCL.loadClip(theNewsThumb,this.newsThumbHolder["newsThumb"+i]);
        newsThumbHolder["newsThumb"+i].onRollOver = function() {
            trace("pewp");
            this.brightnessTo(150,0.5,"easeOutExpo");
        };
        newsThumbHolder["newsThumb"+i].onRollOut = function() {
            this.brightnessTo(100,0.5,"easeOutExpo");
        };
    }
    newsItemTitle.newstxt.text = newsTitle;
    newsItemDate.newstxt.text = newsDate;
    article.newsArticle.text = newsArticle;
}

```
