# Elasticity in mx 2004

**URL:** <https://forum.kirupa.com/t/elasticity-in-mx-2004/50054>\
**Category:** Uncategorized\
**Created:** [April 29, 2004, 12:31am UTC](https://forum.kirupa.com/t/elasticity-in-mx-2004/50054 "2004-04-29T00:31:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_shock](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@g\_shock](https://forum.kirupa.com/u/g_shock)\
**Post date:** [April 29, 2004, 12:31am UTC](https://forum.kirupa.com/t/elasticity-in-mx-2004/50054/1 "2004-04-29T00:31:00Z")

</div>

Hey guys I have been using mx 2004 for the last couple of days,  
and i wanted to do the elasticity effect but it seems not to work. Heres the formula i use on flash mx…

var k:Number = .2;  
var damp:Number = .9;  
var tx:Number = 300;

ax += (tx-\_x)_k  
vx+=ax;  
vx_=damp;  
\_x += vx;

Any ideas on how to make it work on mx 2004?

---

<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 4, 2004, 7:18am UTC](https://forum.kirupa.com/t/elasticity-in-mx-2004/50054/2 "2004-05-04T07:18:35Z")

</div>

No problem. 😉
