How can I make an image fade in and out slowly?

I’m trying to make an alert icon in my game and I want it to steadily fade in and fade out to draw attention to it. I currently have

[code]local alerticon = display.newImageRect( “alerticon.png” , 60, 60);
alerticon: setReferencePoint(display.CenterReferencePoint);
alerticon.x = 160; alerticon.y = 445 [import]uid: 16789 topic_id: 5188 reply_id: 305188[/import]

See http://developer.anscamobile.com/forums/new-users-start-here [import]uid: 6787 topic_id: 5188 reply_id: 17219[/import]

thanks [import]uid: 16789 topic_id: 5188 reply_id: 17222[/import]