# playtoAndStop function

**URL:** <https://forum.kirupa.com/t/playtoandstop-function/321869>\
**Category:** flash\
**Created:** [May 3, 2011, 7:50pm UTC](https://forum.kirupa.com/t/playtoandstop-function/321869 "2011-05-03T19:50:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Illusory](https://avatars.discourse-cdn.com/v4/letter/i/90db22/32.png) [@Illusory](https://forum.kirupa.com/u/Illusory)\
**Post date:** [May 3, 2011, 7:50pm UTC](https://forum.kirupa.com/t/playtoandstop-function/321869/1 "2011-05-03T19:50:43Z")

</div>

I was hoping somone good tell me how to create a “playtoAndStop” function. Essentially, what i want the function to do is play from the current point and stop at a designated frame or label. I do not want to have a stop command in the actions panel to serve as the stop as that would interfere with the functionality that this function is intended to serve.

If anyone could provide a solution to this function that should have been included with AS3, I would greatly appreciate it.

PS. I am new to flash so forgive me if this is a very simple problem.  
-Will
