# Tween Elastic Amplitude Problems

**URL:** <https://forum.kirupa.com/t/tween-elastic-amplitude-problems/263378>\
**Category:** flash\
**Created:** [June 15, 2008, 12:08pm UTC](https://forum.kirupa.com/t/tween-elastic-amplitude-problems/263378 "2008-06-15T12:08:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zubin101](https://avatars.discourse-cdn.com/v4/letter/z/51bf81/32.png) [@zubin101](https://forum.kirupa.com/u/zubin101)\
**Post date:** [June 15, 2008, 12:08pm UTC](https://forum.kirupa.com/t/tween-elastic-amplitude-problems/263378/1 "2008-06-15T12:08:44Z")

</div>

I’m trying to adjust the **amplitude** of the elastic easing class - after hours of trying to figure this out im still clueless. The documentation here: [http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/transitions/easing/Elastic.html](http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/transitions/easing/Elastic.html) vaguely touches upon the parameters to do so but so far i’ve been unable to implement it into practice. I think i need someone to provide an example to how this works.

Could anybody shed some light on this? I’d appreciate it. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![snickelfritz](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@snickelfritz](https://forum.kirupa.com/u/snickelfritz)\
**Post date:** [June 15, 2008, 5:43pm UTC](https://forum.kirupa.com/t/tween-elastic-amplitude-problems/263378/2 "2008-06-15T17:43:29Z")

</div>

You can pass in the easing params as an array in [[COLOR=“Blue”]TweenMax[/COLOR]](http://blog.greensock.com/tweenliteas3/).

---

<div class="post-metadata">

**Author:** ![Alex\_Lexcuk](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Alex\_Lexcuk](https://forum.kirupa.com/u/Alex_Lexcuk)\
**Post date:** [June 15, 2008, 9:02pm UTC](https://forum.kirupa.com/t/tween-elastic-amplitude-problems/263378/3 "2008-06-15T21:02:39Z")

</div>

Test this:

```auto

import fl.transitions.*;
import fl.transitions.easing.*;
 
var myTween:Tween = new Tween(box, "y", Elastic.easeIn, 100, 300, 1, true);
var myTween_1:Tween = new Tween(box, "y", Elastic.easeIn, 300, 100, 1, true);
 
myTween_1.addEventListener(TweenEvent.MOTION_FINISH, function(TweenEvent)
  {myTween.start();
  });
 
myTween.addEventListener(TweenEvent.MOTION_FINISH, function(TweenEvent)
  {myTween_1.start();
  });
 
var amplitude:uint=100;
 
  myTween.begin=200-amplitude;
  myTween.finish=200+amplitude;
 
  myTween_1.begin=200+amplitude;
  myTween_1.finish=200-amplitude;

```

[http://dnadillo.dn.ua/fla/js-swf-html/tween-amplitude-regulator.swf](http://dnadillo.dn.ua/fla/js-swf-html/tween-amplitude-regulator.swf)  
[http://dnadillo.dn.ua/fla/js-swf-html/tween-amplitude-regulator.zip](http://dnadillo.dn.ua/fla/js-swf-html/tween-amplitude-regulator.zip)  
[URL=“[http://dnadillo.dn.ua/fla/filter-button.zip](http://dnadillo.dn.ua/fla/filter-button.zip)”]
