Giving Attributes a Fade Effect with their opacity

Hi guys! Pretty new to gamesalad. I was wondering if anyone knew how to create a fade effect to an actor. What I'm wanting to do it for the player to press on a card, when the card is released it plays an animation where the card flips over. How do I go about creating a delay after the animation and then creating a fade out effect so that it disappears
Comments
cheers
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
rule some_condition_to_trigger_fade
change attribute self.initTime = self.time
rule some_condition_to_stop_fade
change attribute self.initTime = 0
change attribute self.alpha = 1
rule self.alpha > 0 and self.initTime > 0:
constrain self.alpha = cos(10*(self.time - self.initTime))
// adjust 10 to however many seconds you want the fade to take.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps