[Tweener] Tweening filters, latest SVN

Zeh Fernando zeh at zehfernando.com
Sat Nov 15 14:24:44 PST 2008


They fail silently or they fail with an error message?

Remember FilterShortcuts.init(); should be called before any use is made. If
they're failing only when called from the constructor, it's possible the
constructor is being executed before any .init() is done?

Zeh

On Sat, Nov 15, 2008 at 11:13 AM, Andrew Larking <
andrew at ingenieursonline.co.uk> wrote:

> Hello.
>
> I'm trying to tween in some filters, and getting nowhere. :)  I have the
> latest SVN AS3 download.
>
> So, some code that fails (I cut out all the standard package, public class
> stuff):
>
>        import caurina.transitions.*;
>        import caurina.transitions.properties.FilterShortcuts;
>
>                private var breathIn:BlurFilter = new BlurFilter(15, 15, 2);
>                private var breathOut:BlurFilter = new BlurFilter(0, 0, 2);
>
>
> private function cGlow():void {
>                Tweener.addTween(mmMaster.mmC, {_filter:breathIn, time:1.5,
> transition:"easeInOutQuad"});
>                Tweener.addTween(mmMaster.mmC, {delay:1.5,
> _filter:breathOut, time:1.5, transition:"easeInOutQuad", onComplete:cGlow});
> }
>
>
> Now, the tweens are called from the constructor, and they fail.  If however
> they are called by a MouseEvent, they work fine.
>
> Any ideas?
>
> A.
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20081115/1e487c34/attachment.htm>


More information about the Tweener mailing list