Donald Trump. AP Photo/Alex Brandon President Donald Trump threw darts at members of his own party on Tuesday night during a fiery campaign rally in Phoenix, Arizona.

In remarks about his party's failed attempts to repeal and replace Obamacare, Trump lamented that Republicans were "one vote away" from passing a bill, and hinted that Sen. John McCain of Arizona was to blame.

"One vote away! I will not mention any names. Very presidential, isn't it," Trump said, apparently referring to McCain, who cast a dramatic vote against a GOP healthcare measure last month that sunk the legislation.

"Speak to your senator, please. Speak to your senator," Trump said.

Two other Republican senators, Lisa Murkowski of Alaska and Susan Collins of Maine, also voted no, joining 48 Democrats who did the same.

The president then turned his attention to Sen. Jeff Flake, another Arizona Republican who has frequently criticized Trump.

"And nobody wants me to talk about your other senator who's weak on borders, weak on crime — so I won't talk about him," Trump said, referring to Flake. "Nobody knows who the hell he is."

"See, I haven't mentioned any names, so now everybody's happy," Trump said.

Flake has sharpened his criticism of Trump recently, but has largely cosigned the president's agenda regardless.

Trump told the audience he's not done with the repeal-and-replace effort.

"We are going to get rid of Obamacare. I will never stop," he said.

Watch Trump's remarks below: