Diagonal ScanLines - Da Mystery

Ever since I touched Flash I’ve always wondered. How is it that people create those diagonal scanlines so perfectly spaced out? I know it’s possible in Photoshop and I also know it’s possible in Flash! Take a look at diasin.com or 2advanced.com…how the hell is that done?: