# RvGaTe

**URL:** <https://forum.kirupa.com/t/rvgate/21271>\
**Category:** contests\
**Created:** [May 19, 2003, 9:52pm UTC](https://forum.kirupa.com/t/rvgate/21271 "2003-05-19T21:52:02Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![RvGaTe](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/rvgate/32/126_2.png) [@RvGaTe](https://forum.kirupa.com/u/RvGaTe)\
**Post date:** [May 19, 2003, 9:52pm UTC](https://forum.kirupa.com/t/rvgate/21271/1 "2003-05-19T21:52:02Z")

</div>

clean, and actionscripted, rollover to c

[swf=“[http://vdschee.nl/~RvGate/rvgate/kirupaSIG.swf](http://vdschee.nl/~RvGate/rvgate/kirupaSIG.swf) height=60 width=300”][/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:** [May 19, 2003, 10:09pm UTC](https://forum.kirupa.com/t/rvgate/21271/2 "2003-05-19T22:09:02Z")

</div>

Very cool! It gets crazy most of the time, but the idea is great :phil:

---

<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:** [May 19, 2003, 10:10pm UTC](https://forum.kirupa.com/t/rvgate/21271/3 "2003-05-19T22:10:30Z")

</div>

it supposed to get cray, you gotta tread my name gentle 😛

---

<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:** [May 19, 2003, 10:58pm UTC](https://forum.kirupa.com/t/rvgate/21271/4 "2003-05-19T22:58:42Z")

</div>

thats really cool… right now it says vGaTeR which is extremely amusing to me

---

<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:** [May 19, 2003, 11:03pm UTC](https://forum.kirupa.com/t/rvgate/21271/5 "2003-05-19T23:03:24Z")

</div>

if your interested, here’s the code:

```auto

MovieClip.prototype.ease = function(x) {
	speed = 5;
	this.onEnterFrame = function() {
		this._x += (x-this._x)/speed;
	};
};
function changeLayout(x) {
	if (x == 1) {
		number1.ease(71);
		number2.ease(100);
		number3.ease(123);
		number4.ease(153);
		number5.ease(177);
		number6.ease(201);
	} else if (x == 2) {
		number1.ease(100);
		number2.ease(123);
		number3.ease(153);
		number4.ease(177);
		number5.ease(201);
		number6.ease(71);
	} else if (x == 3) {
		number1.ease(123);
		number2.ease(153);
		number3.ease(177);
		number4.ease(201);
		number5.ease(71);
		number6.ease(100);
	} else if (x == 4) {
		number1.ease(153);
		number2.ease(177);
		number3.ease(201);
		number4.ease(71);
		number5.ease(100);
		number6.ease(123);
	} else if (x == 5) {
		number1.ease(177);
		number2.ease(201);
		number3.ease(71);
		number4.ease(100);
		number5.ease(123);
		number6.ease(153);
	} else if (x == 6) {
		number1.ease(201);
		number2.ease(71);
		number3.ease(100);
		number4.ease(123);
		number5.ease(153);
		number6.ease(177);
	}
}

```

rollover calls the function with a random number

simple code, but it gets harder when your name is something like:

thisismylamelongnickname  
😛

edit:  
btw,all thanks to this thread:  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=23691](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=23691)  
i just learnd myself using the prototype today ! 😃

---

<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:** [May 20, 2003, 1:58am UTC](https://forum.kirupa.com/t/rvgate/21271/6 "2003-05-20T01:58:02Z")

</div>

hahaa … i just wanna tickle that some more! 😛

---

<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:** [May 20, 2003, 9:21am UTC](https://forum.kirupa.com/t/rvgate/21271/7 "2003-05-20T09:21:04Z")

</div>

i would love to let it work with springs, but i never figured out how :s, maybe im to lazy or whatever…

---

<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:** [May 20, 2003, 9:34am UTC](https://forum.kirupa.com/t/rvgate/21271/8 "2003-05-20T09:34:52Z")

</div>

try modifying your code a bit…

```auto

MovieClip.prototype.ease = function(x) {
speed = 5;
viscosity=0.7
this.onEnterFrame = function() {
                   xmove=(_root._xmouse-this._x)/speed;
                 xvis=(xvis+xmove)*viscosity; //
                this._x += xvis;
        };
}

```

hope you’ll like 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:** [May 20, 2003, 9:43am UTC](https://forum.kirupa.com/t/rvgate/21271/9 "2003-05-20T09:43:10Z")

</div>

wow, impressive, check it out

thx for the code, could you give me an xplenation of the vars you used ?

---

<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:** [May 21, 2003, 2:48am UTC](https://forum.kirupa.com/t/rvgate/21271/10 "2003-05-21T02:48:49Z")

</div>

=) …i think there is one out there who can explain it a lot better… im not really good with digits or phycs… lol …anyhu, viscosity is some kinda measure of a fluids resistance/friction to flow…  
beyond that… hee hee…  
all i know that if you combine that with the easing effect it will result in a somewhat “elasticity/bounce” effect… i also used that in my footer 🙂
