# Reversing frames

**URL:** https://forum.kirupa.com/t/reversing-frames/59850
**Category:** Uncategorized
**Created:** [August 4, 2004, 11:11am UTC](https://forum.kirupa.com/t/reversing-frames/59850 "2004-08-04T11:11:40Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![gunko2](https://avatars.discourse-cdn.com/v4/letter/g/c67d28/32.png) [@gunko2](https://forum.kirupa.com/u/gunko2)
#### Post date: [August 4, 2004, 11:11am UTC](https://forum.kirupa.com/t/reversing-frames/59850/1 "2004-08-04T11:11:40Z")

</div>

hi,  
i was wondering how can i reverse the frames…  
what i mean is if for example u have a motion tween of a circle sliding to the right…  
what should i write in the last frame of the motion tween so the circle will go back…  
\_current frame–?!  
or what…  
if it’s possible…  
thanks ahead…  
:h:

---

<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: [August 4, 2004, 11:23am UTC](https://forum.kirupa.com/t/reversing-frames/59850/2 "2004-08-04T11:23:27Z")

</div>

> [@gunko2](#):
>
> hi,  
> i was wondering how can i reverse the frames…  
> what i mean is if for example u have a motion tween of a circle sliding to the right…  
> what should i write in the last frame of the motion tween so the circle will go back…  
> \_current frame–?!  
> or what…  
> if it’s possible…  
> thanks ahead…  
> :h:

If you just want to move your circle back, just copy your first frame in your time line and paste it on the end of your timeline and create a new motion tween between your middle frame and your last frame…

Hope that helps…

---

<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: [August 4, 2004, 11:46am UTC](https://forum.kirupa.com/t/reversing-frames/59850/3 "2004-08-04T11:46:43Z")

</div>

i know how to do that i was just wondering if it can be done the way i asked…

---

<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: [August 4, 2004, 12:43pm UTC](https://forum.kirupa.com/t/reversing-frames/59850/4 "2004-08-04T12:43:01Z")

</div>

maybe having previousFrame(); on the frames with an if statement?

---

<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: [August 4, 2004, 1:21pm UTC](https://forum.kirupa.com/t/reversing-frames/59850/5 "2004-08-04T13:21:55Z")

</div>

can u explain what u mean…  
and if the motion tween is 200 frames long?!  
:sigh:  
maybe i misunderstood u…

---

<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: [August 7, 2004, 10:50am UTC](https://forum.kirupa.com/t/reversing-frames/59850/6 "2004-08-07T10:50:02Z")

</div>

how’s about this:

On a button add:

```php
  
on (rollOver) {
	_global.over = true;
}
on (rollOut) {
	_global.over = false;
}

```

and on an empty movie clip u can add:

```php
  
onClipEvent (enterFrame) {
	if (_global.over == false) {
		_root.prevFrame();
	} else if (_global.over == true) {
		_root.nextFrame();
	}
}

```

this is just an example so u get it, do u get it? 😛

---

<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: [August 7, 2004, 10:52am UTC](https://forum.kirupa.com/t/reversing-frames/59850/7 "2004-08-07T10:52:17Z")

</div>

I used that code on this swf here:

[swf=“[http://vincecrypt.0catch.com/animated\_gotoandplay.swf](http://vincecrypt.0catch.com/animated_gotoandplay.swf)”]width=300 height=60[/swf]

---

<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: [August 7, 2004, 12:28pm UTC](https://forum.kirupa.com/t/reversing-frames/59850/8 "2004-08-07T12:28:19Z")

</div>

yes i got that…  
but i already found the same answer in flashkit (searched)…  
but thanks anyway…  
i really appreciate ur 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: [August 7, 2004, 12:31pm UTC](https://forum.kirupa.com/t/reversing-frames/59850/9 "2004-08-07T12:31:31Z")

</div>

what about searching here? What makes flashkit so much better? :trout:

---

<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: [August 7, 2004, 12:44pm UTC](https://forum.kirupa.com/t/reversing-frames/59850/10 "2004-08-07T12:44:37Z")

</div>

> [@senocular](#):
>
> what about searching here? What makes flashkit so much better? :trout:

well…  
because i remember seenig the same question as mine in flashkit… but it was a long time ago and then i had flash for only for like a week…  
hell i didn’t even understand the question then…  
so i went there now and searched because i was sure that the answer is there…  
and i do search here in this forum too!  
and flashkit isn’t that much better then this site…  
in fact i like the tutorials in this site much more then there… beacuase of the explantions about every line of code and clean presentation…  
😉
