# onMotionFinished- Getting code to start set num of frames BEFORE Motion finished

**URL:** https://forum.kirupa.com/t/onmotionfinished-getting-code-to-start-set-num-of-frames-before-motion-finished/236136
**Category:** flash
**Created:** [August 17, 2007, 2:00pm UTC](https://forum.kirupa.com/t/onmotionfinished-getting-code-to-start-set-num-of-frames-before-motion-finished/236136 "2007-08-17T14:00:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Sam\_Goudie](https://avatars.discourse-cdn.com/v4/letter/s/bbe5ce/32.png) [@Sam\_Goudie](https://forum.kirupa.com/u/Sam_Goudie)
#### Post date: [August 17, 2007, 2:00pm UTC](https://forum.kirupa.com/t/onmotionfinished-getting-code-to-start-set-num-of-frames-before-motion-finished/236136/1 "2007-08-17T14:00:46Z")

</div>

Hey,

Wondering if theres a way of using onMotionFinished or something simular to track a tween (created with the tween class) and start the next action BEFORE the motion ends.

I thought about something like this but I don’t think it is!  
onMotionFinished -1 or something like that.

Ideas chaps?
