# Tweening Numbers

**URL:** https://forum.kirupa.com/t/tweening-numbers/189105
**Category:** flash
**Created:** [May 13, 2006, 7:22pm UTC](https://forum.kirupa.com/t/tweening-numbers/189105 "2006-05-13T19:22:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mprzybylski](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mprzybylski/32/613_2.png) [@mprzybylski](https://forum.kirupa.com/u/mprzybylski)
#### Post date: [May 13, 2006, 7:22pm UTC](https://forum.kirupa.com/t/tweening-numbers/189105/1 "2006-05-13T19:22:38Z")

</div>

I thought I read something about this here one time but a search didn’t bring up any results. What I want to do is tween a number from lets say 0 to 50 using the Tween class. The below is an example of my tween but it wasn’t working (_NOTE_ i’m using TweenExtended but if you change the tween to Tween only it will be the same thing, i just have a habit of using the TweenExtended class):

```auto

import mx.transitions.easing.*;
import mx.transitions.TweenExtended;

var myNum:Number = 0;

var _tween:TweenExtended = new TweenExtended(myNum, ["myNum"], Regular.easeOut, [0], [50], 5, true);

_tween.onMotionChanged = function(obj) {
    trace(myNum);
};

```

any ideas?
