# Tween color?

**URL:** <https://forum.kirupa.com/t/tween-color/171931>\
**Category:** flash\
**Created:** [December 9, 2005, 12:04pm UTC](https://forum.kirupa.com/t/tween-color/171931 "2005-12-09T12:04:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bennymartensson](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bennymartensson/32/1317_2.png) [@bennymartensson](https://forum.kirupa.com/u/bennymartensson)\
**Post date:** [December 9, 2005, 12:04pm UTC](https://forum.kirupa.com/t/tween-color/171931/1 "2005-12-09T12:04:02Z")

</div>

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);  
}
