Wrap text
Report abuse
function scrolling(e:Event):void {
thumbGallery.x += Math.cos(((-thumbGallery.mouseX) / thumbMask.width) * Math.PI) * 15;
if (thumbGallery.x > thumbMask.x) {
thumbGallery.x = thumbMask.x;
}
if ((-thumbGallery.x) > (thumbGallery.width - thumbMask.width)) {
thumbGallery.x = -(thumbGallery.width - thumbMask.width);
}
}