# Why is this not tweening?

**URL:** https://forum.kirupa.com/t/why-is-this-not-tweening/17741
**Category:** Uncategorized
**Created:** [April 8, 2003, 7:55pm UTC](https://forum.kirupa.com/t/why-is-this-not-tweening/17741 "2003-04-08T19:55:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mlk](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mlk](https://forum.kirupa.com/u/mlk)
#### Post date: [April 8, 2003, 7:55pm UTC](https://forum.kirupa.com/t/why-is-this-not-tweening/17741/1 "2003-04-08T19:55:25Z")

</div>

Well here’s the AS tweening code  
i’ve checked everything  
the MC called thetext is on the timelime, in fact everything is

if the movement is not tweened, could it be that the for loop is too fast and switches from the actual to the previous/next position too rapidly ??

```auto

t = 3;
function go_up() {
	for (yactualposition=i; i<ypreviousposition; i) {
		trace(i);
		_root.thetext._y = i;
		i += t
	}
	_root.prevFrame();
	stop();
}
function go_down() {
	for (yactualposition=i; i>yforwardposition; t) {
		_root.thetext._y = i;
		i -= t;
	}
	_root.nextFrame();
	stop();
}

```

---

<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 8, 2003, 9:03pm UTC](https://forum.kirupa.com/t/why-is-this-not-tweening/17741/2 "2003-04-08T21:03:10Z")

</div>

alright ill post my fla… btw im doing this to help someone else on the forum, but looks like I need Flash help myself

---

<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 8, 2003, 9:14pm UTC](https://forum.kirupa.com/t/why-is-this-not-tweening/17741/3 "2003-04-08T21:14:26Z")

</div>

sorry this isnt no help to the question but i think your footer is caool mlk! it bring some colour to these forums (many footers have all been gray and blue recently!)

Ⓜ

---

<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 9, 2003, 6:12pm UTC](https://forum.kirupa.com/t/why-is-this-not-tweening/17741/4 "2003-04-09T18:12:43Z")

</div>

well thanks for the help guys anyway…  
i think i might have worked the thing out - althoug if somoene more experience could confirm it:

- i at least 2 frames **need** to be played in order for the script to work…  
I dont know why a single, looping code wont affect my clips… Maybe flash has a disease :beam:
