Matt Flynn completed 4-of-5 passes in his first game as a Raider, helping Oakland open its preseason schedule with a 19-17 victory over the Dallas Cowboys on Friday.
Flynn was acquired from Seattle during the offseason to guide an Oakland squad that went just 4-12 last season under first-year head coach Dennis Allen.
Terrelle Pryor completed 6-of-10 passes for 88 yards with an interception in backup duty, while rookie Matt McGloin finished 4-of-7 for 78 yards and a score for the Raiders.
Tony Romo, who sat out Dallas' preseason opener as a precaution, connected on 6-of-8 passes for 88 yards. Backup Kyle Orton went a perfect 6-of-6 for 52 yards and a touchdown in the setback.
Dez Bryant led Dallas' receiving corps with three catches for 55 yards.
Flynn turned the ball over on Oakland's first touch, as he was sacked by Sean Lee and fumbled the ball to give Dallas possession at the Oakland 16.
Dan Bailey buried a 38-yard field goal after the turnover, but Flynn was able to move the Raiders into position for Sebastian Janikowski's 51-yard boot that tied the game.
Pryor took over under center on Oakland's next possession and was picked off by J.J. Wilcox deep in Dallas territory. Orton converted the turnover into points, finding Cole Beasley for a 15-yard touchdown to make it 10-3.
Janikowski knocked down a 40-yarder late in the second before rookie Eddy Carmona added a 42-yard field goal early in the third to make it 10-9.
McGloin put the Raiders in front with a 30-yard scoring strike to Brice Butler, but Joseph Randle punched it in from a yard out early in the fourth to give Dallas a 17-16 edge.
Carmona's 23-yard field goal near the midpoint of the fourth proved to be the difference.