On frame ("name")

theres this script :gotoAndPlay(“frame name”) that tells us go to the specific frame. but is there anything like on frame (“name”), then do an action?