Anybody knows how to change the color in the “flop” mode? Would like the “backside” to be grey and I want this to animate aswell. Thank you.
The code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
box.onRelease = function() {
if(this._xscale > -50) {
flip(this);
}
else {
flop(this);
}
}
function flip(who) {
var tw:Tween = new Tween(who,"_xscale",Bounce.easeOut,100,-100,1,true);
}
function flop(who) {
var tw:Tween = new Tween(who,"_xscale",Bounce.easeOut,-100,100,1,true);
}