During their recent four-game losing streak, the Bruins struggled offensively, scoring only seven goals.

In that span, Jaromir Jagr had two assists. Over his first eight games with the Bruins, the 41-year-old was mainly a facilitator, dishing out six assists to go with one goal.

When the Bruins acquired him in a April 2 trade, coach Claude Julien put him in the third line for a reason: to spread out the scoring.

And yesterday, Jagr did just that, sparking the Bruins’ 3-0 shutout of the Florida Panthers with a goal 3:03 into the game.

“Most of the nights I’m playing on the third line. I think that’s what coach wanted to have: three, four lines that can score goals going into the playoffs,” Jagr said.

“That’s the way we have to play. That’s what you’re going to need going into the playoffs, to be able to have all the lines be able to score goals. That’s why other teams can’t just shut down one line; there are other lines that can score goals. I think that’s pretty important to have that going into the playoffs.”

Since being acquired from the Dallas Stars, Jagr has taken quality shots on net, but the goals haven’t come. Yesterday, he created the scoring opportunity on his own.

Jagr kept the puck in the zone, stealing it from T.J. Brennan and passing it to Carl Soderberg. After Chris Kelly bounced the puck off the wall, Jagr again kept the possession alive, stealing the puck from Shawn Matthias. This time he kept it and skated to the edge of the right faceoff circle before firing the puck past goaltender Jacob Markstrom.