Alert Message

is there a way in AS to create an alert similar to javascript? just something that I can use to see if a function is getting called.