Hi Jelyoung,
I may be wrong, but I don't think it's possible to change the loop property from code. You'll have to set it from the Sound Property Editor. If you want a looping version and a non-looping version of the same sound, you can either split them using a switch container, or you can have two different events that are identical (except for the loop option).