Return to Snippet

Revision: 37098
at December 3, 2010 22:53 by burnandbass


Initial Code
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;
}

Initial URL

                                

Initial Description
Sometimes you need to tween a number (for example from 1-100) and to get the number

Initial Title
Tweening number with Tweener

Initial Tags
number

Initial Language
ActionScript 3