# Elasticity in mx 2004

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