ActionScript Bitmap Filter Tweening

Posted by TheDarkIn1978 on Stack Overflow See other posts from Stack Overflow or by TheDarkIn1978
Published on 2010-06-02T20:06:56Z Indexed on 2010/06/02 20:54 UTC
Read the original article Hit count: 260

Filed under:
|
|

i can't seem to tween any bitmap filters. here's my code:

var dropShadow:DropShadowFilter = new DropShadowFilter();
mySprite.filters = [dropShadow];
var dropShadowTween:Tween = new Tween(dropShadow, "distance", Regular.easeOut, 4.0, 20, 2, true);

what is my mistake? i've also tried the following but it doesn't work:

var dropShadowTween:Tween = new Tween(mySprite.filters[0], "distance", Regular.easeOut, 4.0, 20, 2, true);

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about filter