Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
//=============================================================== 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); } }
This paste will be private.
From the Design Piracy series on my blog: