Hi there,
i'm playing with those cool classes but i cannot understand how to stop a tween and how to reset the value (to bring all the mc's to the starting point).
i wrote down a stupid code but it doesn't work... for sure i'm missing something but i cannot understand what...
///IMPORT what i need for my test
import gs.TweenMax;
import gs.plugins.*;
import gs.*;
TweenPlugin.activate([blurFilterPlugin, DropShadowFilterPlugin, TintPlugin]);
import gs.easing.*;
//want to call a tween as a group to move some mc's
function prova()
{
var tween1:TweenMax = new TweenMax(scheda01red, 2, {_x:"100", ease:Quint.easeOut, startAt:{_x:-100}, blurFilter:{blurX:6, blurY:3}});
var tween2:TweenLite = new TweenLite(scheda02red, 2, {_x:"100", ease:Quint.easeOut, stagger:0.3, blurFilter:{blurX:6, blurY:3}});
var tween3:TweenLite = new TweenLite(scheda03red, 2, {_x:"100", ease:Quint.easeOut, stagger:0.3, blurFilter:{blurX:6, blurY:3}});
GroupSchede = new TweenGroup([tween1, tween2, tween3]);
GroupSchede.align = TweenGroup.ALIGN_SEQUENCE;
}
//a function to try the "stop" and others...
function stoppa()
{
GroupSchede.stop();
//GroupSchede.reverse()
//trace( myTween.duration);
//killTweensOf(GroupSchede);
//removeTween(GroupSchede);
}
//on Release on this button i call prova and mc's start moving
plei.onRelease = prova;
//on Release of this...nothing happen
stop_btn.onRelease = stoppa;