The West's victory was their first since 2001 and narrowed the series lead to 16-13 in favor of the East squad.
When the East squad trailed by as many as 21 points early in the third quarter, James started to take over.
The East squad played better in the second half.
The East squad defeated the West by a score of 20-9.
"The game should be for the active players," said Barkley, who was voted to the East squad.
Boateng played for the East squad, for whom he grabbed 6 rebounds, and had an assist, in 10 minutes.
The East squad prevailed with a 141-139 victory over the West.
He played in the Hula Bowl on January 18, 1991, for the East squad.
"The clock was their ally and maybe they should have milked it a little more," said Riley, speaking of the East squad.
But he did not make the team until 2005, as a reserve, and was a late replacement to the East squad last season.