# Button code for branching

**URL:** <https://forum.kirupa.com/t/button-code-for-branching/324022>\
**Category:** Uncategorized\
**Created:** [July 28, 2011, 9:39pm UTC](https://forum.kirupa.com/t/button-code-for-branching/324022 "2011-07-28T21:39:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhubbell](https://avatars.discourse-cdn.com/v4/letter/n/ecae2f/32.png) [@nhubbell](https://forum.kirupa.com/u/nhubbell)\
**Post date:** [July 28, 2011, 9:39pm UTC](https://forum.kirupa.com/t/button-code-for-branching/324022/1 "2011-07-28T21:39:32Z")

</div>

I need a button to be coded so that onRelease it goes to a certain frame and plays until it hits a frame label at which time it jumps to another frame on the timeline. This only happens if you click the button. If you play the movie from the beginning it ignores the label.
