1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| import mx.transitions.Tween;
var verticalPosFinal:Number = 160;
var tomber = mx.transitions.easing.Elastic.easeOut;
LesJours=new Array("un","deux","trois","quatre","cinq","six");
for(i=0;i<LesJours.length;i++)
{
this.attachMovie(LesJours[i], LesJours[i], this.getNextHighestDepth(), {_x:200,_y:-300});
var funcTween:Object = new Tween(this[LesJours[i]], "_y", tomber, -300, 150, 1, true);
funcTween.onMotionFinished=function(){
onEnterFrame=function(){
if( un._alpha > 0 )
{
un._alpha-=5;
}else{
delete this.onEnterFrame;
}
}
}
} |
Partager