Beckham and Yao Ming attended the NBA China Games in Macao, drawing Chinese and U.S. basketball fans as the city invests heavily to widen its image beyond gambling.