Flight Crew Air Transport Pilot (ATP)
Distraction; Situational Awareness
Conflict Airborne Conflict; Deviation - Speed All Types; Deviation / Discrepancy - Procedural Published Material / Policy
Flight Crew Became Reoriented
Human Factors
After takeoff at acceleration altitude I called for 'flaps 0; climb checks; pitch mode.' The PM (Pilot Monitoring) began the duties; however at the same time we were told to immediately turn right and level off at 3;000 feet as there was an aircraft that was not communicating with Tower headed straight for us. This diverted our attention from the task at hand. I suspect the PM omitted retracting the flaps accidentally and I failed to notice. Once we were clear of the traffic we were handed off to another frequency on which we were told to look for yet another aircraft in close proximity. By the time we were clear we were through 10;000 feet and due to the distractions we forgot to complete the climb check. I initially began accelerating and reached about 265 knots before I decided to slow to complete the second part of the ice test. Once the test was complete (at around 18;000 feet) I began accelerating and again reached about 265 knots before we realized the flaps were still set to 9. We slowed; retracted the flaps; contacted Maintenance and continued the flight without further incident.No real suggestions. It was human error on my part. I should have been more vigilant and will be in the future.
EMB-145 Captain reported the crew oversped the flaps during climbout when they were distracted by ATC traffic calls.