# Playing to a specific frame

**URL:** https://forum.kirupa.com/t/playing-to-a-specific-frame/220844
**Category:** Uncategorized
**Created:** [March 29, 2007, 7:18pm UTC](https://forum.kirupa.com/t/playing-to-a-specific-frame/220844 "2007-03-29T19:18:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![halian](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@halian](https://forum.kirupa.com/u/halian)
#### Post date: [March 29, 2007, 7:18pm UTC](https://forum.kirupa.com/t/playing-to-a-specific-frame/220844/1 "2007-03-29T19:18:43Z")

</div>

I had a thought and i’m not sure how to go about this.

Lets say i had an animation and i also had four buttons.  
The animation would have 4 frame labels at different areas of the timeline. For example:

“Label 1” “Label 2” “Label 3” “Label 4”

now if i’m on the “Label 1” frame and i hit button 3. I’d like to have the animation play until it reaches “Label 3”. Also if I were at “Label 4” and hit button 1, I would want it to play backwards to “Label 1” OR maybe it could either play through to the end and loop back depending on which way is closer.

I don’t know if this is really possible. I know each labeled frame would require a stop() action, but i’m not sure how to make something play until it reaches a specified destination frame.

Any ideas?
