/ Published in: ActionScript 3

Sometimes you need to tween a number (for example from 1-100) and to get the number
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import caurina.transitions.Tweener; var someObject = {} someObject.someValue = 0 var valueYouNeed:Number Tweener.addTween(someObject, {someValue:100, time:5, onUpdate:funk}) function funk(e:Event = null):void{ valueYouNeed:Number = someObject.someValue; }
Comments
