I just did this for some text I was fading in and out
Add sine behavior to the player. under sine behavior change to "value only"
make an event:
ON button pressed -> set player opacity to sine.value(50,100)
This should work. I don't have access to my PC and my CAPX but I believe that is the correct way I did it for the sine.value.