Sorry for my english as i am Canadian french
let say i use a class to keep different animation props :
var slideWithBlur:WinAnimType=new WinAnimType([{ease:Strong.easeOut,startAt:{x:1000,y:'T'}},{x:-2000,ease:Regular.easeIn}],[.75],[{blurFilter:{blurX:100}}]);
so i could do :
manager.openWin('win1',slideWithBlur,WinType.BASIC);
basically, i have 3 params
1:An array containing two object (in, out)
2:An array containing one or two number (speed) if only one number exists, it is used for in and out animation
3:An array containing one or two object (FX) if only one number exists, it is used for in and out animation
Two tweens are used at the same time with overwrite 0 (one for the basic props and the second for the Fx, mainly blur)
In this example, the object comes from the right (x:-1000) and aligned to top (y: 'T') (i parse the letter in my code and inject it in the tween props)
in addition, the object is blurred from 100, to 0 (i use Tween.from for the blurIn), then from 0 to 100 (i use Tween.to for the blurOut)
The problem is that on blurOut , my objetc will do 0 to 100 for the blur instead of 100 to 0 like it should (that is when i reuse the BlurFilter props for the in and out)
But if i do [{blurFilter:{blurX:100}},{blurFilter:{blurX:100}}] as third param instead of [{blurFilter:{blurX:100}}] it work as expected
Shouldnt the same work for the in (from) and out (to)
Here is the get function returning from inside the class WinAnimType:
public function get animFxIn():Object {
return $fxAnimProps[0];
}
//the array contain only one objet, used it for in and out
public function get animFxOut():Object {
return ($fxAnimProps[1]==null) ? $fxAnimProps[0]:$fxAnimProps[1];
}
I hope it is clearer now,and many thanks again !!!