for(i=0;i<6;i++){
b_loop = _root.mc_menu["b_0"+i];
b_loop.thisNum = i;
//
import flash.filters.BlurFilter;
import mx.transitions.Tween;
import mx.transitions.easing.Strong;
var totalBlur:Number = 5;
var noBlur :Number = 0;
var blur:BlurFilter = new BlurFilter(totalBlur, totalBlur, 3);
b_loop.filters = new Array(blur);
var blurTween:Tween;
b_loop.onRollOver = function() {
blurTween = new Tween(blur, "blurX", Strong.easeOut, blur.blurX, noBlur, 1.0, true);
blurTween.onMotionChanged = function() {
blur.blurY = blur.blurX;
b_loop.filters = new Array(blur);
}
}
b_loop.onRollOut = function() {
blurTween = new Tween(blur, "blurX", Strong.easeOut, blur.blurX, totalBlur, 1.0, true);
blurTween.onMotionChanged = function() {
blur.blurY = blur.blurX;
b_loop.filters = new Array(blur);
}
}
}
So strange. When I try without the loop the action works normally, but when added the looping that’s it. Stop to work.
Does anyone know why?
Another question, I am trying to apply the elastic tweening as well but is not working at all. Can I have more the one Tween\Class by MC?
Cheers,
Diego