Scrolling Thumbnails

Hi all,

Haven’t used flash for a while so I’m a bit rusty, and still using MX.

I’m doing a thumbnail scrolling movie that you see around where the further mouse moves from the center the quicker the movie scrolls. The images are loaded into a thumbs MC which has a mask mc above it and a stroke mc, all of which is contained within a thHolder mc, The movie seems to work fine but if I put the thHolder mc which contains everything in different parts of the stage the scrolling action works differently.

This is the part of the code that controls the thumbnail scrolling, I’m sure the problem is to do with the xDist var and it relating to the stage rather then just the MC containing the thumbnails.

ActionScript:

hHolder_mc.thumb_mc.onRollOver = panelOver;
function panelOver() {
this.onEnterFrame = scrollPanel;
delete this.onRollOver;
}
var b = thHolder_mc.stroke_mc.getBounds(_root);
function scrollPanel() {
if (_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if (thHolder_mc.thumb_mc._x>=gutter) {
thHolder_mc.thumb_mc._x = gutter;
}
if (thHolder_mc.thumb_mc._x<=thHolder_mc.mask_mc._width-thHolder_mc.thumb_mc._width) {
thHolder_mc.thumb_mc._x = thHolder_mc.mask_mc._width-thHolder_mc.thumb_mc._width;
}
var xdist = _xmouse-(thHolder_mc._width/2);

    thHolder_mc.thumb_mc._x += -xdist/20;

}

Any help here would be really appreciated.