playtoAndStop function

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