UNIONDALE, N.Y.- Trent Hunter scored his second goal on a power play with 30.7 seconds left in overtime tonight as the New York Islanders beat the Flyers, 6-5, after trading for all-star Ryan Smyth.

Hunter took the puck in the slot and beat Antero Nittymaki for his 19th goal as the Islanders moved into a tie for seventh place in the Eastern Conference with Montreal.

Jason Blake, whom the team had considered dealing at the deadline, had a hat trick and an assist for the Islanders, and Chris Simon also scored. Rick DiPietro stopped 29 shots and the Islanders improved to 5-1-0 on their seven game home stand.

The Flyers came back from a pair of three-goal deficits on two goals by R.J. Umberger and goals by Sami Kapanen, Dimitry Afanasenkov and Simon Gagne. Nittymaki stopped 33 shots.

Earlier in the day, New York sent first-round picks Robert Nilsson (2003) and Ryan O'Marra (2005), along with a first-round choice in this year's draft to Edmonton for Smyth, who has 31 goals and 53 points in 53 games.

The Islanders took a 1-0 lead when Chris Campoli's low slap shot was tipped by Blake past Nittymaki 2 minutes, 10 seconds into the game.

Blake netted his second of the game at 8:34 for a 2-0 lead.

The teams then traded goals 20 seconds apart.

Umberger put the Flyers on the board at 13:42 on a high slot wrist shot that beat DiPietro. Hunter answered when he benefited from confused defensive coverage in the Flyers' zone. He grabbed a loose puck and threw it into an open net at 14:02 for his 18th goal.

The Islanders scored their three goals on just five shots.

Blake finished off his second hat trick of the season and fifth of his career with 14.7 seconds left in the period. He stole the puck away from Sami Kapanen right in front of Nittymaki and then faked a forehand before tucking the puck in on a backhand.

Kapanen redeemed himself when he beat DiPietro with a rebound at 2:48 of the second period.

The Islanders made it 5-2 at 6:20 when Blake assisted on Simons eighth goal of the season, third goal in four games, and 300th NHL point.

Afanasenkov moved the Flyers to 5-3 at 7:10 on a backhand in close.

Philadelphia tied the game with a pair of third-period goals 55 seconds apart.

Umberger's second of the game came from a sharp angle shot that DiPietro misplayed into the net with his goalie pad at 8:12. Gagne took three swipes at the puck before finally putting it home at 9:07.

Nittymaki kept the game tied with the save of the game with 4:10 left, as he dove and got his stick shaft on Andy Hilbert's one-timer.