I created a movie myThumbs and placed the masked thumbnail_mc in it because there are things i want to do to the whole scrolling mc in one go…
anyway… here is my augmented version of the AS…
Everything loads up fine… but the scrolling isnt working… can anyone tell why?
thanks in advance…
function thumbNailScroller() {
// thumbnail code!
home.myThumbs.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=myThumbs.thumbnail_mc._y) && (_root._ymouse<=myThumbs.thumbnail_mc._y+myThumbs.thumbnail_mc._height)) {
if ((_root._xmouse>=(myThumbs.hit_right._x-40)) && (myThumbs.thumbnail_mc.hitTest(myThumbs.hit_right))) {
myThumbs.thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=(myThumbs.hit_left._x+40)) && (myThumbs.thumbnail_mc.hitTest(myThumbs.hit_left))) {
myThumbs.thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}
// ALL BELLOW SEEMS TO WORK....
function thumbnails_fn(k) {
myThumbs.thumbnail_mc.createEmptyMovieClip("t"+k, myThumbs.thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = myThumbs.hit_left._x+(target_mc._width)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
home.my_sound.start();
};
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "myThumbs.thumbnail_mc.t"+k);
}