Report abuse

//===============================================================
function scrolling(e:Event):void {
//===============================================================
	//TODO: fix this bullshit
	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);
	}

}