Function for displaying a message?

hi, all … i am newbie in flash…just started learning actionscripts… Is that any functions for displaying a message when i click on a button?? something like msgbox()?? or trace() ?
trace() is more for debugging purposes rite??