DALLAS (AP) _ Ramon Flanigan, refusing to be denied at the goal line again, escaping from heavy pressure to throw a 7-yard touchdown pass to Brian Berry with 3 seconds left Saturday and give Southern Methodist a 34-31 victory over New Mexico.

The Mustangs (1-2) already had squandered one late chance to go ahead of the Lobos (0-3) and the memory of two wasted scoring chances the previous week against UCLA was fresh in their minds.

To get the last shot against New Mexico, Flanigan led SMU from its 20 with 2:33 to play to second-and-5 at the Lobos 7 with 9 seconds left.

With the Mustangs out of timeouts, it was likely their last chance.

A heavy rush came at Flanigan and he danced back near the 20. Two defenders were closing in when he fired into the far right of the end zone, hitting Berry between the numbers for the winning score.

On the previous series - after New Mexico went ahead 31-27 with 7:53 left on a 1-yard TD leap by Eric Young - the Mustangs had gotten close but couldn't score.

SMU faced second-and-goal from the 4 when they were flagged for delay of game, then gave up a sack and missed a field goal attempt.

At that point, the game was reminiscent of the previous week's 17-10 loss to UCLA, when the Mustangs were close to scoring with less than two minutes left but couldn't.

This time, SMU broke through and pulled out its first home-opening victory since 1990 and ended a six-game losing streak at Ownby Stadium.

New Mexico continued its road woes, losing its 13th straight to a non- conference foe away from home and its 10th straight in Texas dating to 1983. All three Lobos losses this year are to Southwest Conference teams.

New Mexico led 24-20 entering the fourth quarter as quarterback Stoney Case brought the Lobos back from a 13-point first-half deficit.

Touchdown runs by Flanigan and Womack and field goals of 34 and 28 yards by Ben Crosland put SMU ahead 20-7 with 7:03 to play in the first half.

Then Case, who had a 9-yard TD run in the first quarter, led the Lobos on two quick scoring drives. He threw 65 yards to Eric Young and 9 to Zack Wesley to put the Lobos ahead 21-20 at halftime.

Nathan Vail kicked a 41-yard field goal on New Mexico's first possession of the second half for a 24-20 lead.

But Flanigan put SMU ahead 27-24 on the first play of the fourth quarter when he dashed 25 yards up the short side of the field.

This was only the second meeting of the future Western Athletic Conference rivals. The Mustangs, who are among six teams joining the WAC in 1996, won 20-13 two years ago in Albuquerque.

Flanigan completed 19-of-29 for 187 yards and ran 22 times for 113 yards. Womack had 129 yards as the Mustangs ran for 322.

Case, fifth nationally in total offense at 350.5 yards a game, was 14-of-26 for 184 yards and ran seven times for 25 yards. Young rushed for 81 yards.