[Tweener] looping
Zeh Fernando
zehfernando at zeh.com.br
Wed Dec 12 16:23:08 PST 2007
Probably because the second slide is being ran inside of lightGlimmer;
the scope of the events is the tweened object itself.
Try this instead:
import caurina.transitions.Tweener;
function slide():Void {
trace("slide");
Tweener.addTween(this.lightGlimmer,{_x:222, time:4,
transition:"easeOutOuad"});
Tweener.addTween(this.lightGlimmer,{_x:-70, time:0, delay:4,
onComplete:slide, onCompleteScope:this});
}
slide();
Zeh
Dwayne Neckles wrote:
> Can anyone tell me why this code doesnt loop?
> I searched in the archives and code I found didnt work in my case..
>
> import caurina.transitions.Tweener;
>
> function slide():Void {
> trace("slide");
>
> Tweener.addTween(this.lightGlimmer,{_x:222, time:4,
> transition:"easeOutOuad"});
> Tweener.addTween(this.lightGlimmer,{_x:-70, time:0, delay:4,
> onComplete:slide});
>
> }
>
> slide();
>
> ------------------------------------------------------------------------
> i’m is proud to present Cause Effect, a series about real people making
> a difference. Learn more
> <http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
More information about the Tweener
mailing list