Michael Frolik scored two goals to lead the Calgary Flames to a 5-2 victory over the Boston Bruins on Wednesday night.

Johnny Gaudreau collected his 100th NHL goal and rookie defenseman Juusu Valimaki scored his first for the Flames. Matthew Tkachuk added an empty-net goal.

More Images
Boston Bruins' Brandon Carlo, right, and Calgary Flames' Sean Monahan chase the puck during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Michael Frolik scored two goals to lead the Calgary Flames to a 5-2 victory over the Boston Bruins on Wednesday night.

Boston Bruins goalie Tuukka Rask, of Finland, lets in a goal from the Calgary Flames during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Patrice Bergeron had a goal and an assist for the Bruins. Brad Marchand also scored. Bruins netminder Tuukka Rask turned away 24 shots in the loss.

Boston Bruin goalie Tuukka Rask, right, of Finland, looks back as Calgary Flames' Michael Frolik, of the Czech Republic, hits the crossbar during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Frolik nearly completed a hat trick on a short-handed breakaway, but his backhanded shot sailed over the Boston net. The Czech's second goal came results from a Boston turnover in the offensive zone. Backlund flipped the puck across the slot, and Frolik tapped it over Rask's stick at 3:32.

Boston Bruins' John Moore, top left, tries to get the puck past Calgary Flames goalie Mike Smith, centre, as Michael Frolik, second from right, of the Czech Republic, and T.J. Brodie look on during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Valimaki's first NHL goal gave the Flames a 3-0 lead at 16:08 of the first period.

Boston Bruins' Brad Marchand, right, Calgary Flames' Derek Ryan chase the puck during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Frolik had half an open net for a target following a nice passing play by Tkachuk and Backlund. Tkachuk hustled into the offensive zone to backhand the puck to Backlund, who was moving into the slot. Backlund flipped the puck over to Frolik to score at 4:36.

Boston Bruins' Ryan Donato, left, steals the puck away from Calgary Flames' James Neal during an NHL hockey game in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Flames: Home against Nashville on Friday.

Boston Bruins goalie Tuukka Rask, right, of Finland, kicks the puck away on a shot from Calgary Flames' Mikael Backlund, of Sweden, during an NHL hockey game in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Boston Bruins goalie Tuukka Rask, right, of Finland, kicks the puck away on a shot from Calgary Flames' Mikael Backlund, of Sweden, during an NHL hockey game in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Mikael Backlund and Michael Stone each had two assists as Calgary won its second straight home game. Goaltender Mike Smith stopped 24 of 26 shots in the win.

Boston Bruins' Brandon Carlo, right, and Calgary Flames' Sean Monahan chase the puck during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Boston Bruins' Brandon Carlo, right, and Calgary Flames' Sean Monahan chase the puck during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Patrice Bergeron had a goal and an assist for the Bruins. Brad Marchand also scored. Bruins netminder Tuukka Rask turned away 24 shots in the loss.

The Bruins trailed 4-2 heading into the final period.

Marchand was lightly defended when he scored at 13:45 of the second, taking a pass from Bergeron and scoring past Smith.

Boston Bruins goalie Tuukka Rask, of Finland, lets in a goal from the Calgary Flames during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Boston Bruins goalie Tuukka Rask, of Finland, lets in a goal from the Calgary Flames during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Frolik nearly completed a hat trick on a short-handed breakaway, but his backhanded shot sailed over the Boston net. The Czech's second goal came results from a Boston turnover in the offensive zone. Backlund flipped the puck across the slot, and Frolik tapped it over Rask's stick at 3:32.

On Boston's first rush after killing off Calgary's two-man advantage, Bergeron scored at 2:40 on a give-and-go with David Krejci.

What appeared to be a goal by David Pastrnak late in the first period didn't survive a coach's challenge by Calgary's Bill Peters. The Bruins were ruled offside.

Boston Bruin goalie Tuukka Rask, right, of Finland, looks back as Calgary Flames' Michael Frolik, of the Czech Republic, hits the crossbar during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Boston Bruin goalie Tuukka Rask, right, of Finland, looks back as Calgary Flames' Michael Frolik, of the Czech Republic, hits the crossbar during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Valimaki's first NHL goal gave the Flames a 3-0 lead at 16:08 of the first period.

With Sam Bennett in front of Rask, the 20-year-old Valimaki's shot from the top of the circle rolled over the goaltender and over the goal line.

Gaudreau collected his milestone goal at 15:20. At the top of the crease, Sean Monahan batted the puck down low to the winger, and Gaudreau scored from a tough angle.

Boston Bruins' John Moore, top left, tries to get the puck past Calgary Flames goalie Mike Smith, centre, as Michael Frolik, second from right, of the Czech Republic, and T.J. Brodie look on during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Boston Bruins' John Moore, top left, tries to get the puck past Calgary Flames goalie Mike Smith, centre, as Michael Frolik, second from right, of the Czech Republic, and T.J. Brodie look on during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Frolik had half an open net for a target following a nice passing play by Tkachuk and Backlund. Tkachuk hustled into the offensive zone to backhand the puck to Backlund, who was moving into the slot. Backlund flipped the puck over to Frolik to score at 4:36.

NOTES: Frolik, Calgary's veteran winger, had been a healthy scratch in the Flames' previous game, a 3-2 overtime win over the host Colorado Avalanche on Saturday.

UP NEXT

Boston Bruins' Brad Marchand, right, Calgary Flames' Derek Ryan chase the puck during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Boston Bruins' Brad Marchand, right, Calgary Flames' Derek Ryan chase the puck during NHL hockey action in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Flames: Home against Nashville on Friday.

Bruins: At Edmonton on Thursday.

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

Boston Bruins' Ryan Donato, left, steals the puck away from Calgary Flames' James Neal during an NHL hockey game in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Boston Bruins' Ryan Donato, left, steals the puck away from Calgary Flames' James Neal during an NHL hockey game in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Boston Bruins goalie Tuukka Rask, right, of Finland, kicks the puck away on a shot from Calgary Flames' Mikael Backlund, of Sweden, during an NHL hockey game in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)

Boston Bruins goalie Tuukka Rask, right, of Finland, kicks the puck away on a shot from Calgary Flames' Mikael Backlund, of Sweden, during an NHL hockey game in Calgary, Alberta, Wednesday, Oct. 17, 2018. (Jeff McIntoshThe Canadian Press via AP)