You can use frame labels to define areas to go to on any timeline.
They are incredibly useful because you can move them around with your animation to go to locations, unlike frame numbers which remain the same.
To set frame labels:
1. Select a frame in a Timeline where you want to use a label.
2. Enter a frame label in the Property inspector in the label field (it should show up as a little red flag).
3. To go to a label, put its name in quotes.
Ex. button going to a label in another place on the same timeline
On (release){
gotoAndStop("end")
}
This will go to a label named end on the timeline.