# Thumbnail Panel with Loader Comp

**URL:** <https://forum.kirupa.com/t/thumbnail-panel-with-loader-comp/225949>\
**Category:** Uncategorized\
**Created:** [May 16, 2007, 11:29pm UTC](https://forum.kirupa.com/t/thumbnail-panel-with-loader-comp/225949 "2007-05-16T23:29:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Langs](https://avatars.discourse-cdn.com/v4/letter/l/e495f1/32.png) [@Langs](https://forum.kirupa.com/u/Langs)\
**Post date:** [May 16, 2007, 11:29pm UTC](https://forum.kirupa.com/t/thumbnail-panel-with-loader-comp/225949/1 "2007-05-16T23:29:37Z")

</div>

Hello,  
I have a huge flash error. I need some serious help on this could be simple problem. I am trying to create a thumbnail panel that has all my pictures on it which scroll as the mouse moves over it… BUT I cant figure out how to link them for the life of me. I’m using a Loader Compontent that loads the main picture of the thumbnail when clicked on the panel. Heres my code for the thumbnail panel if you need it:

panel.onRollOver = panelOver;

function panelOver() {  
this.onEnterFrame = scrollPanel;  
delete this.onRollOver;  
}

var b = stroke.getBounds(\_root);

function scrollPanel() {  
if(\_xmouseb.xMax || \_ymouseb.yMax) {  
this.onRollOver = panelOver;  
delete this.onEnterFrame;  
}

if(panel.\_x \>= 79) {  
panel.\_x = 79;  
}

if(panel.\_x \<= -379) {  
panel.\_x = -379;  
}

var xdist = \_xmouse - 400;

panel.\_x += -xdist / 7;  
}

Is there something that kills a simple code like this from working in another movie clip? I am trying to get this code to work…

on (release) {  
loader.contentPath = (“1.jpg”);  
}

Am I going crazy or what? Why doesnt this work?

Thanks! [SIZE=1][COLOR=#bbbbbb]  
[/COLOR][/SIZE]
