Context3D setProgramConstants

Can anyone give me any idea, or point to documentation on how to use this in respect to loading a Material with Ka Kd Ks Ns and Tr as OBJ material.

Thanks