UNIONDALE, N.Y. (AP) -- The New York Islanders gave Brad Shaw something positive to show for the two most hectic days of his coaching career.
Mark Parrish scored the go-ahead goal in the third period and Rick DiPietro made 28 saves in his return from a knee injury to help Shaw win his first game as an NHL head coach, 3-2 over the Calgary Flames on Thursday night.
"We responded," DiPietro said. "We played hard for Brad. It was a good team win against a very good team. We can build on this."
Shaw replaced the fired Steve Stirling before the game. The former NHL defenseman will direct the team for the rest of the season. He joined Stirling's staff this season after coaching Anaheim's Cincinnati affiliate in the AHL for three years.
"It was a crazy day," Shaw said. "I tip my hat to the players. It isn't easy playing in that environment. ... It's a great opportunity for me. The experience I'm going to go through
here no matter what happens will help me in my hockey career."
Mike Milbury is also stepping aside as New York's general manager, but not until he and team owner Charles Wang hire a replacement. Milbury will become a vice president for Wang's sports properties. Milbury and Wang fired Stirling on Wednesday night and
"It was almost too much for my brain to handle," Shaw said.
Parrish scored the winning goal on a power play with 7:44 to play. With Calgary's Jordan Leopold off for hooking Arron Asham on
a breakaway, Parrish beat Miikka Kiprusoff with a close-range backhander off Miroslav Satan's pass.
"We knew they'd be fired up," Flames star Jarome Iginla said. "We've all gone through something like this during our careers when there's a shakeup or a tough change and you band together and get fired up. They battled and competed and found a way to get that third goal that we didn't get."
Satan had a goal and two assists, and Trent Hunter had a goal and an assist for the Islanders. New York had lost three in a row and eight of its previous nine games.
"It looked like what we pictured from this team at the start of the season," Shaw said. "The difference is believing in ourselves. We saw a lot of good signs."
DiPietro, back in goal after missing five games because of a sprained left knee, allowed only Darren McCarty's goal off a rebound in the first minute and Iginla's power-play goal late in
the first period.
"He made some key saves at big times," Shaw said. "I thought he was outstanding."
Satan tied it at 2 with 10 seconds left in the second period, beating Kiprusoff with a wrist shot after picking up a loose puck near the left faceoff circle.
McCarty opened the scoring 53 seconds into the first period. DiPietro stopped Marcus Nilson's shot, but the unchecked McCarty put the rebound into an empty net.
Hunter tied it 1:18 later, beating Flames defenseman Andrew Ference to the puck in the crease and snapping a wrist shot past Kiprusoff.
Iginla's power-play goal gave Calgary a 2-1 lead with 2:47 left in the first period, tipping in rookie defenseman Dion Phaneuf's
Phaneuf had two assists and also had the hit of the game, blasting Jason Blake into the boards behind Kiprusoff midway through the third period.
The Northwest Division-leading Flames have lost the first three games of a four-game trip after winning four straight at home.
"We played well enough to win, but there are two or three guys who really aren't playing well, and that's what's costing us games," coach Darryl Sutter said. "Defensively, Dion and Robyn [Regehr] have been carrying most of the load, and we need more from everybody else if we're going to have a chance to win.
"Dion is our best player, and it's not even close. Jordan and Andrew have to be better competitors," Sutter said.
The Islanders activated DiPietro from injured reserve before the game and sent goalie Fredric Cloutier and center Jeff Hamilton to AHL Bridgeport. ... Islanders forward Eric Godard, back after serving a two-game suspension for punching Carolina's Justin Williams on Friday night, fought Chris Simon on
his first shift. Islanders newcomer John Erskine pounded Simon in another fight after Parrish's goal. "He took care of a real heavyweight," Shaw said. ... The Flames will complete their four-game trip Saturday night in Minnesota. ... The Islanders wore their white jerseys at home for the first time this season. ... The game was the lone regular-season contest between the teams.