SUNRISE, Fla. - Jaromir Jagr thinks milestones are great. He'll take a win over a special moment, though, every time.

Jagr scored his 732nd goal to move past Marcel Dionne for fourth place in NHL history, and Alexander Barco tallied the winner in the shootout as the Florida Panthers beat the Vancouver Canucks 5-4 on Sunday.

"That goal is sweet but the win is even sweeter," Jagr said. "It is special. I've played with a lot of great players; that makes it a lot easier for me. I started with great players in Pittsburgh and I'm going to finish here with great players."

The Panthers won their fourth straight game, their first four-game winning streak since winning five straight from Dec. 10-19, 2013, and have won 10 of their past 13 games.

Barco scored against Jacob Markstrom, who entered the game after Ryan Miller left due to cramps after allowing a goal on two shots in the shootout.

Barkov's winner came on a move where he bounced the puck off his own skate before backhanding it past Markstrom.

"I tried it a couple of times in practice. I was pretty confident it was going to work," Barkov said.

Jared McCann scored in the shootout for Vancouver, but Roberto Luongo stopped Sven Baertschi to seal the win.

"We had to make that move because you can't afford to have something happen (to Miller)," Canucks coach Willie Desjardins said.

Aaron Ekblad, Vincent Trocheck and Shawn Thornton also scored for the Panthers. Luongo stopped 34 shots. Jagr also had an assist.

Daniel Sedin scored his team-leading 15th goal of the season for the Canucks. Derek Dorsett, Baertschi and Jannik Hansen also scored goals. Miller made 36 saves.

"Tonight, maybe the legs weren't there like we had last game, but we stayed around their guys and didn't give them a lot of chances," Sedin said.

The game was tied four times in the first two periods.

Ekblad gave the Panthers a 4-3 lead on a power-play goal at 8:31 of the second. Jonathan Huberdeau passed to Jagr in the corner of the crease and Jagr dropped a perfect pass to Ekblad, who poked it past Miller.

The Canucks tied the score at 4 when Sedin and Hansen took advantage of a 2-on-1. Sedin took a pass from Hansen below the left circle and put the puck into an open net with 5:20 left in the second.

Tied at 2, each team traded goals 31 seconds apart in the second. Trocheck gave the Panthers a 3-2 lead when his shot from the slot got past Miller at 5:38. Dorsett tucked in his own rebound at 6:09 to tie the score at 3.

Jagr's power-play goal with 11.5 seconds left in the first tied the game at 2. Barkov passed to Jagr in front and Jagr slapped the puck past Miller.

The Canucks took a 2-1 lead when Bo Horvat passed to Baertschi in the right circle, who wristed it over Luongo's shoulder with 4:31 left in the first.

Vancouver took a 1-0 lead when Hansen deflected the puck into the net at 6:32.

The Panthers tied it 1-all after Thornton scored his first goal of the season at 12:26.

NOTES: Canucks C Henrik Sedin missed his second straight game with a lower-body injury sustained in Thursday's 2-0 defeat at Philadelphia. ... The Panthers played the first of a six-game homestand and does not go on the road until Jan. 5 when they visit Buffalo.