Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//===============================================================
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);
	}

}