[Flashcoders] Weak bounce easing equation

2006-10-05 Thread Jake Prime

Hi

Is there anywhere I can find a greater range of Penner type easing
equations than are normally around? Specifically I want a much weaker
bounce than the usual easeOutBounce. All my searches come up with
the same basic equations.

I have tried editing the bounce function resulting in something
looking more like a teleporting UFO than a bouncing ball :o)

Thanks
Jake
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Weak bounce easing equation

2006-10-05 Thread Mendelsohn, Michael
Take a look at the Tween class and its various easing methods documented
under the components language reference in the help.  There's a good
variety there, and you can control many facets about the tween.

- MM

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Weak bounce easing equation

2006-10-05 Thread Jake Prime

On 05/10/06, Mendelsohn, Michael [EMAIL PROTECTED] wrote:


Take a look at the Tween class and its various easing methods documented
under the components language reference in the help.


Unless I'm missing something, you don't get any control over the
quantity of bounce there. The only thing it depends on is the distance
travelled. If I want to tween a movieclip quite a long way, but only
want a small bounce effect I can't see how to do that.

IIf I can't find a pre-written easing equation, it's not the end of
the world, I can always just string together a few normal tweens one
after the other to create the same effect. Always nice to do it in one
line if you can though :o)

Jake
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Weak bounce easing equation

2006-10-05 Thread Mendelsohn, Michael
You could probably tween something using the None easing method for a
long distance, giving it linear movement, then when the tween is done,
call onMotionFinished, and give it a new tween, but this time, over a
short distance, and with bounces.  I don't think you can control the
amount of bounces.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Weak bounce easing equation

2006-10-05 Thread Bart Wttewaall

You can control the quantity of the bounce to some extend by using the
last two optional arguments in Elastic. I played with them for a bit,
but couldn't tweak it to the point where it behaves as the animation
you described.

Hope it helps.. Godd luck!

-- code --

import mx.transitions.Tween;
import mx.transitions.easing.Elastic;

var obj = mc;
var time = 0;
var prop = _x;
var begin = obj[prop];
var end = begin + 400;
var change = end-begin;
var duration = 5;
var fps = 31;
var done = false;

var a = change * 2; // looks like some sort of multiplier on the swing
var p = (duration*fps) * 0.3; // magnetic force (lower = faster)

onEnterFrame = function() {
if (time  duration*fps) {
obj[prop] = Elastic.easeOut(time++, begin, change, 
duration*fps, a, p);
} else {
time = 0;
}
}

2006/10/5, Mendelsohn, Michael [EMAIL PROTECTED]:

You could probably tween something using the None easing method for a
long distance, giving it linear movement, then when the tween is done,
call onMotionFinished, and give it a new tween, but this time, over a
short distance, and with bounces.  I don't think you can control the
amount of bounces.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Weak bounce easing equation

2006-10-05 Thread Andreas Weber
 Is there anywhere I can find a greater range of Penner type easing
equations than are normally 
 around? Specifically I want a much weaker bounce than the usual
easeOutBounce.

Try Timothée Groleau's brilliant Easing Function Generator - by dragging
the control points you can easily shape the easing curve: 
http://timotheegroleau.com/Flash/experiments/easing_function_generator.htm

hth
--
Andreas Weber



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com