Jamie Oleksiak scored with 40 seconds left in regulation as the Dallas Stars beat the Calgary Flames 5-4 Thursday night after blowing a two-goal lead in the third period.

The Stars caught Calgary on a line change, and Oleksiak took a pass from Corey Perry and scored, evening their best-of-seven series at a game each.

More Images
Dallas Stars' Alexander Radulov (47) and Miro Heiskanen (4) celebrate a goal against the Calgary Flames during the first period of a first-round NHL Stanley Cup playoff hockey series in Edmonton, Thursday Aug. 13, 2020. (Jason FransonThe Canadian Press via AP)

Jamie Oleksiak scored with 40 seconds left in regulation as the Dallas Stars beat the Calgary Flames 5-4 Thursday night after blowing a two-goal lead in the third period.

Calgary Flames' Derek Forbort (20) and Sam Bennett (93) celebrate a goal against the Dallas Stars during the second period of a first round NHL Stanley Cup playoff hockey series in Edmonton, Alberta, on Thursday, Aug. 13, 2020. (Jason FransonThe Canadian Press via AP)

Calgary got a short-hander from Tobias Rieder with 7:36 left, and then tied the game on Sam Bennett's power play goal with 2:49 left after Alexander Radulov got an interference penalty in the offensive zone.

Calgary Flames' Dillon Dube (29) scores on Dallas Stars goalie Ben Bishop (30) as Stars' Esa Lindell (23) defends during the first period of an NHL hockey Stanley Cup first-round playoff series, Thursday, Aug. 13, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

The Stars tied the game less than 2 1/2 minutes later, when Benn took a hard shot from just inside the blue line that goalie Cam Talbot couldn't handle in traffic. Radulov then made a backhand spin, with the puck ricocheting over the lower leg of Derek Forbort and past the goalie.

Calgary Flames goaltender Cam Talbot (39) is scored on by the Dallas Stars during the first period of an NHL hockey Stanley Cup first-round playoff series, Thursday, Aug. 13, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Ben Bishop stopped 22 of 26 shots for the third-seeded Stars after not playing in their last two round-robin games or the series opener against Calgary.

Calgary Flames' Dillon Dube (29) is stopped by Dallas Stars goalie Anton Khudobin (35)] during the first period in Game 1 of an NHL hockey Stanley Cup first-round playoff series, Tuesday, Aug. 11, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

But Calgary got only two shots during the ensuing four minutes with a man advantage, before the short-hander and power play goal that got them even.

Calgary Flames' Andrew Mangiapane (88) is stopped by Dallas Stars goalie Anton Khudobin (35) as Alexander Radulov (47) defends during the first period in Game 1 of an NHL hockey Stanley Cup first-round playoff series, Tuesday, Aug. 11, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

NOTES: Flames LW Matthew Tkachuk seemed out of sorts when he skated off the ice and then left the bench early in the third period. He banged heads with both Benn and Oleksiak after getting caught in a collision between the two.

Calgary Flames' Milan Lucic (17) checks Dallas Stars' John Klingberg (3) during the first period of a first-round NHL Stanley Cup playoff hockey series in Edmonton, Thursday Aug. 13, 2020. (Jason FransonThe Canadian Press via AP)

More AP NHL: https://apnews.com/NHL and https://twitter.com/AP_Sports

Perry also scored on the power play in the second period for the Stars.

Dallas Stars' Alexander Radulov (47) and Miro Heiskanen (4) celebrate a goal against the Calgary Flames during the first period of a first-round NHL Stanley Cup playoff hockey series in Edmonton, Thursday Aug. 13, 2020. (Jason FransonThe Canadian Press via AP)

Dallas Stars' Alexander Radulov (47) and Miro Heiskanen (4) celebrate a goal against the Calgary Flames during the first period of a first-round NHL Stanley Cup playoff hockey series in Edmonton, Thursday Aug. 13, 2020. (Jason FransonThe Canadian Press via AP)

Calgary got a short-hander from Tobias Rieder with 7:36 left, and then tied the game on Sam Bennett's power play goal with 2:49 left after Alexander Radulov got an interference penalty in the offensive zone.

Game 3 is Friday night.

Dallas defenseman Miro Heiskanen scored two goals while on the ice with the top Stars line of Jamie Benn, Tyler Seguin and Radulov that responded after Dillon Dube put the Flames ahead with a goal just 19 seconds into the game,

Calgary Flames' Derek Forbort (20) and Sam Bennett (93) celebrate a goal against the Dallas Stars during the second period of a first round NHL Stanley Cup playoff hockey series in Edmonton, Alberta, on Thursday, Aug. 13, 2020. (Jason FransonThe Canadian Press via AP)

Calgary Flames' Derek Forbort (20) and Sam Bennett (93) celebrate a goal against the Dallas Stars during the second period of a first round NHL Stanley Cup playoff hockey series in Edmonton, Alberta, on Thursday, Aug. 13, 2020. (Jason FransonThe Canadian Press via AP)

The Stars tied the game less than 2 1/2 minutes later, when Benn took a hard shot from just inside the blue line that goalie Cam Talbot couldn't handle in traffic. Radulov then made a backhand spin, with the puck ricocheting over the lower leg of Derek Forbort and past the goalie.

Radulov assisted on the go-ahead goal midway through the first period when he beat Calgary captain Mark Giordano for the puck along the board, and pushed it ahead to Heiskanen for a backhander from just inside the left circle.

Heiskanen made it 3-1 about five minutes into the second period with a backhand knuckler off the board that slipped through the small gap between Talbot's right arm and the post.

Calgary Flames' Dillon Dube (29) scores on Dallas Stars goalie Ben Bishop (30) as Stars' Esa Lindell (23) defends during the first period of an NHL hockey Stanley Cup first-round playoff series, Thursday, Aug. 13, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Calgary Flames' Dillon Dube (29) scores on Dallas Stars goalie Ben Bishop (30) as Stars' Esa Lindell (23) defends during the first period of an NHL hockey Stanley Cup first-round playoff series, Thursday, Aug. 13, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Ben Bishop stopped 22 of 26 shots for the third-seeded Stars after not playing in their last two round-robin games or the series opener against Calgary.

Talbot had 31 saves.

The Flames appeared to have gotten within a goal again about five minutes into the third period but officials ruled after a replay review that Andrew Mangiapane had kicked the puck into the net. That came at the same time that Seguin took a double-minor penalty for a high stick.

Calgary Flames goaltender Cam Talbot (39) is scored on by the Dallas Stars during the first period of an NHL hockey Stanley Cup first-round playoff series, Thursday, Aug. 13, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Calgary Flames goaltender Cam Talbot (39) is scored on by the Dallas Stars during the first period of an NHL hockey Stanley Cup first-round playoff series, Thursday, Aug. 13, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

But Calgary got only two shots during the ensuing four minutes with a man advantage, before the short-hander and power play goal that got them even.

Forbort's wrister from inside the blue line in the second period got Calgary within 3-2, but the Stars restored their two-goal lead about two minutes later on Perry's power play goal. Roope Hintz took a hard shot that ricocheted off Talbot, and Faksa and Perry both took whacks at the puck to get in the net.

Dube, who scored twice in the first period of the Flames' 3-2 win in Game 1, quickly put them ahead when the puck ricocheted off the end board and through traffic right in front to the 22-year-old center.

Calgary Flames' Dillon Dube (29) is stopped by Dallas Stars goalie Anton Khudobin (35)] during the first period in Game 1 of an NHL hockey Stanley Cup first-round playoff series, Tuesday, Aug. 11, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Calgary Flames' Dillon Dube (29) is stopped by Dallas Stars goalie Anton Khudobin (35)] during the first period in Game 1 of an NHL hockey Stanley Cup first-round playoff series, Tuesday, Aug. 11, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

NOTES: Flames LW Matthew Tkachuk seemed out of sorts when he skated off the ice and then left the bench early in the third period. He banged heads with both Benn and Oleksiak after getting caught in a collision between the two.

UP NEXT

Game 3 is set for Friday.

Calgary Flames' Andrew Mangiapane (88) is stopped by Dallas Stars goalie Anton Khudobin (35) as Alexander Radulov (47) defends during the first period in Game 1 of an NHL hockey Stanley Cup first-round playoff series, Tuesday, Aug. 11, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

Calgary Flames' Andrew Mangiapane (88) is stopped by Dallas Stars goalie Anton Khudobin (35) as Alexander Radulov (47) defends during the first period in Game 1 of an NHL hockey Stanley Cup first-round playoff series, Tuesday, Aug. 11, 2020, in Edmonton, Alberta. (Jason FransonThe Canadian Press via AP)

More AP NHL: https://apnews.com/NHL and https://twitter.com/AP_Sports

Calgary Flames' Milan Lucic (17) checks Dallas Stars' John Klingberg (3) during the first period of a first-round NHL Stanley Cup playoff hockey series in Edmonton, Thursday Aug. 13, 2020. (Jason FransonThe Canadian Press via AP)

Calgary Flames' Milan Lucic (17) checks Dallas Stars' John Klingberg (3) during the first period of a first-round NHL Stanley Cup playoff hockey series in Edmonton, Thursday Aug. 13, 2020. (Jason FransonThe Canadian Press via AP)