# Helpppp! \< animation control \>

**URL:** <https://forum.kirupa.com/t/helpppp-animation-control/15946>\
**Category:** Uncategorized\
**Created:** [March 19, 2003, 6:17pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946 "2003-03-19T18:17:03Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![monkeygirl](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@monkeygirl](https://forum.kirupa.com/u/monkeygirl)\
**Post date:** [March 19, 2003, 6:17pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/1 "2003-03-19T18:17:03Z")

</div>

hi everybody  
i have just built an animation and would like to add a few buttons so the viewer can view it at his/her own pace (fast forward, stop, resume)…I was wondering how exactly I could do that?  
I tried to use  
on(release){  
gotoAndPlay(nextFrame();  
}  
but i know that’s not the right thing to do…HELP! 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:** [March 19, 2003, 6:40pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/2 "2003-03-19T18:40:19Z")

</div>

i’d create a function for each action … 🙂

```auto
// play movie
playMovie = function() {
	play();
}
// stop/pause movie
stopMovie = function() {
	stop();
}
// fast forward
fastForward = function() {
	_currentframe != _totalframes ? nextFrame() : clearInterval(fastForwardInterval);
}
// play button
playButton.onRelease = playMovie;
// stop/pause button
stopButton.onRelease = stopMovie;
// fast forward button
fastButton.onPress = function() {
	fastForwardInterval = setInterval(fastForward, milliseconds);
}
fastButton.onRelease = function() {
	clearInterval(fastForwardInterval);
}

```

if you need a more detailed explanation just tell me =)

by the way … the working equivalent of

```auto
on (release) {
	gotoAndPlay(nextFrame());
}

```

would be something like this

```auto
on (release) {
	gotoAndPlay(_currentframe+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:** [March 19, 2003, 6:46pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/3 "2003-03-19T18:46:34Z")

</div>

hi kax,  
thank you so much for replying!  
but…being the absolute beginner that I am, i still don’t really understand…haha…sorry…  
what exactly is a function and how do i go about using it?  
thanks for your patience!

---

<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:** [March 19, 2003, 6:50pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/4 "2003-03-19T18:50:53Z")

</div>

hmm … changing the speed of the movie. that’s a toughie

what kind of animation is it that they would need to change the speed?

you can do stop and play easy enough  
on (press) {  
stop();  
}  
on (press) {  
play();  
}

and you can rewind to the beginning  
on (press) {  
gotoAndPlay(1);  
}  
skip to the end  
on (press) {  
gotoAndStop(put the number of your last frame here);  
}  
but if you want to get into rewinding and fast forwarding that’s a little more complicated

to do a rewind  
follow the example set in this file

---

<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:** [March 19, 2003, 6:51pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/5 "2003-03-19T18:51:04Z")

</div>

ok then … i’ll make an example for you =)

in the meantime … you can open the actionscript dictionary [size=1]help | actionscript dictionary[/size] and search for everything you don’t understand in the code 😉

---

<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:** [March 19, 2003, 6:51pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/6 "2003-03-19T18:51:39Z")

</div>

to change speed you’ll need to use ‘set intervals’

use this file to understand the concept

-----------------------edit---------------------

lol kax … we were posting at the same time :whistle:

good job  
i’ll let you make the example =)

monkey girl … where ya from?

:sure: no one fills out their info anymore

---

<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:** [March 19, 2003, 6:52pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/7 "2003-03-19T18:52:21Z")

</div>

… or you can do that **shuga** :sigh: 😛 😉

---

<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:** [March 19, 2003, 6:57pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/8 "2003-03-19T18:57:20Z")

</div>

i’ll have to look into making that example tonight when i get home from work and then out of school … if you haven’t already done it by then. i don’t have time to do much more than check the forums while i’m here at work ☹

good luck!

---

<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:** [March 19, 2003, 7:02pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/9 "2003-03-19T19:02:03Z")

</div>

Thanks Shuga…I’m working on it right now…I’ll let you both know how it turns out…haha =D

---

<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:** [March 19, 2003, 7:03pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/10 "2003-03-19T19:03:14Z")

</div>

oh and i’m from san jose, ca…

---

<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:** [March 19, 2003, 7:06pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/11 "2003-03-19T19:06:30Z")

</div>

ohh i just realized…the backwards2.zip file you posted only works for a movie clip (right?)…what i’m trying to do is control the movie timeline…basically I’m trying to recreate what this company already has in their product demos  
[www.autdemo.com/?samples](http://www.autdemo.com/?samples)  
if you click on any of the samples, you’ll see a little control panel thingie on the lower right…

---

<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:** [March 19, 2003, 7:09pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/12 "2003-03-19T19:09:07Z")

</div>

monkeygirl:  
your link doesn’t work … atleast it didn’t when i clicked on it. i tried it without the ? too

san jose … that’s cool. i’m in sacramento right now for school. i’ll be moving to san diego in a couple of months once i graduate. what do you do?

---

<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:** [March 19, 2003, 7:13pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/13 "2003-03-19T19:13:36Z")

</div>

oopsie…sorry it’s [www.autodemo.com/?samples](http://www.autodemo.com/?samples)  
sacramento? go KINGS! =P  
u in college?  
i’m going back to school (hopefully) in a few months…i graduated last may…i work at a software company (in the marketing dept)

---

<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:** [March 19, 2003, 7:34pm UTC](https://forum.kirupa.com/t/helpppp-animation-control/15946/14 "2003-03-19T19:34:16Z")

</div>

marketing dept. cool

where did you graduate from … what was your degree?

yes i am in college … i go to CSU Sacramento

i’m excited to graduate, looking for jobs is fun =)

my portfolio site is coming along although there’s no work up yet. you can see it if at [http://www.aaronsleeper.com](http://www.aaronsleeper.com)

the mail form doesn’t work yet though, but you can email me through here =)

what do you do for the marketing dept of autodemo (i’m guessing that’s the company you work for)
