ARLINGTON, Texas — Joe Flacco hadn't even taken the field yet when Baltimore scored its second touchdown to go ahead for good.
After a sluggish start, his second game in new offensive coordinator Gary Kubiak's version of the West Coast offense turned out solid.
Deonte Thompson returned a kickoff 108 yards for a score after Tony Romo threw a touchdown pass in his first game for Dallas since back surgery last season, Flacco had a scoring toss and the Ravens beat the Cowboys 37-30 on Saturday night.
The Ravens (2-0) also got a 26-yard fumble return for a touchdown when Courtney Upshaw picked up a botched handoff from Romo and stayed on his feet while Romo tried to drag him down by his jersey.
Baltimore led 14-7 before Flacco took the field for the first time late in the first quarter. He threw a 19-yard scoring pass to Torrey Smith for a 24-10 lead late in the first half.
"It was definitely a weird situation, but it's something we could have to deal with any week throughout the season," Flacco said.
Flacco had a rougher start than in Baltimore's win over San Francisco in the exhibition opener, when he led an 80-yard scoring drive on his only possession.
After punts on either side of a drive to the first of three field goals from Justin Tucker, Flacco's only touchdown drive was kept alive by a roughing-the-passer penalty against George Selvie on a third-down incompletion.
The Ravens scored two plays later after Flacco's longest pass of the night — a 38-yarder to Jacoby Jones — and Smith's over-the-shoulder catch in the end zone despite tight coverage from rookie cornerback Terrance Mitchell.
"We came out slow, weren't really firing on all cylinders, and didn't keep ourselves on the field," said Flacco, who was 9 of 14 for 133 yards. "But I thought we did a good job of fighting through it."
Romo was expected to take about a dozen snaps for Dallas (0-2) in first game since surgery for a herniated disk that kept him out of a loss to Philadelphia in playoffs-or-bust finale last December. He ended up with 14 plays, capped by a 31-yard touchdown pass to Dez Bryant midway through the first quarter.
"He looked good," Bryant said. "He wanted to show the world he is '9' and he's a baller."
Murray had 25 of his 34 yards rushing and a 21-yard catch on the next drive, which ended with Bryant leaping over Ravens cornerback Dominique Franks at the goal line and falling into the end zone.
Romo was 4 of 5 for 80 yards, and Bryant had three catches for 59 yards after both skipped the preseason-opening loss at San Diego, along with several other offensive and defensive starters.
"Some things came up that were a little different we hadn't seen," Romo said. "We were able to communicate and be on the same page and the receivers, me, the linemen. It just shows we are doing some going things and are further along than you might usually be this early."
Thompson answered Romo's touchdown by getting to the left sideline untouched and having only kicker Dan Bailey to beat, which he did easily around midfield to put the Ravens ahead for good. Thompson also had a 50-yard kickoff return.
"He had outstanding vision on the first return and made a guy miss," coach John Harbaugh said. "On the second, he broke a tackle. Deonte made a statement tonight."
Like Flacco, Romo backup Brandon Weeden wasn't as smooth in his second preseason game. He underthrew Terrance Williams just enough to give Baltimore's Chykie Brown a chance to break up what otherwise would have been a scoring pass and finished 10 of 19 for 129 yards with a sack and an interception.
The Ravens gave up 184 yards and 11 first downs with their first team on the field in the first quarter, including Romo's 83-yard scoring drive. But the backups were solid for a team looking for depth on a unit struggling with injuries.
NOTES: Ravens RB Ray Rice played only the second series and had two carries for 21 yards, including an 18-yarder. He has a shoulder bruise that isn't considered serious. ... Baltimore CB Jimmy Smith left the game early with a chest contusion that is considered mild.
Follow Schuyler Dixon on Twitter at https://twitter.com/apschuyler