# Movie manipulation

**URL:** <https://forum.kirupa.com/t/movie-manipulation/2436>\
**Category:** Uncategorized\
**Created:** [April 3, 2002, 4:14pm UTC](https://forum.kirupa.com/t/movie-manipulation/2436 "2002-04-03T16:14:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 4:14pm UTC](https://forum.kirupa.com/t/movie-manipulation/2436/1 "2002-04-03T16:14:23Z")

</div>

this is probably dead easy but… here goes. I’ve go a movie clip and I wan’t to control it with three buttons. each of the buttons should make the clip play to a certain frame in the movie clip from it’s current position. any way to make this happen?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 5:19pm UTC](https://forum.kirupa.com/t/movie-manipulation/2436/2 "2002-04-03T17:19:13Z")

</div>

alright I’m going nuts here. I can use the tell target-play actions to start the movie playing from it’s current position, but I can’t figure out what I need to use to stop the movie at a certain point without putting stop actions on the frames. anyone? please help!?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 5:26pm UTC](https://forum.kirupa.com/t/movie-manipulation/2436/3 "2002-04-03T17:26:13Z")

</div>

you can have the buttons set a variable and at each frame you would like the clip to stop the clip can check that variable.  
example:  
you have a clip with 200 frames. you want the buttons to tell the movie to play up to 50, 100, 150, and 200.  
at each frame put this code:  
if(\_root.nFrameLimit==\_currentframe){  
stop();  
}  
and on the buttons have this code:  
on(release){  
\_root.nFrameLimit=50;  
\_root.mcMovie.play();  
}  
and repeat that same code in all the buttons with the values 100, 150, and 200 for ‘nFrameLimit’ in the different buttons.  
i haven’t tested it but it should work fine.  
🙂  
jeremy

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 5:32pm UTC](https://forum.kirupa.com/t/movie-manipulation/2436/4 "2002-04-03T17:32:15Z")

</div>

brilliant! I’ll try it and let you know. I knew it would have something to do with variables but I don’t know how to use them yet. thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 3, 2002, 5:49pm UTC](https://forum.kirupa.com/t/movie-manipulation/2436/5 "2002-04-03T17:49:37Z")

</div>

that totally worked!!! thank you.
