Below’s functions for rollover to fade out an object and rollout to fade in an object. Can’t get the fade in to work (object still not visible/appear in), any suggestion?
// Import Tween/Easing classes
import mx.transitions.Tween;
import mx.transitions.easing.*;
function ballov(easeType) {
var begin = 100;
var end = 0;
var time = 0.2;
var mc = _level10.test;
ballov Tween = new mx.transitions.Tween(mc, "_alpha", easeType, begin, end, time, true);
}
function ballout(easeType) {
var begin = 0;
var end = 100;
var time = 1;
var mc = _level10.test;
balloutTween = new mx.transitions.Tween(mc, "_alpha", easeType, begin, end, time, true);
}
button.hit.onRollOver = function() {
ballov(mx.transitions.easing.Strong.easeOut);
}
button.hit.onRollOut = function() {
ballout(mx.transitions.easing.Strong.easeIn);
}
}
Thanks!
Friggin’ Mick!