/ Published in: ActionScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
import mx.transitions.Tween; import mx.transitions.easing.*; my_mc.onRollOver = function() { new Tween( this, "_xscale", Back.easeOut, this._xscale, 75, .5, true ); new Tween( this, "_yscale", Back.easeOut, this._yscale, 75, .5, true ); } my_mc.onRollOut = function() { new Tween( this, "_xscale", Back.easeOut, this._xscale, 65, .5, true ); new Tween( this, "_yscale", Back.easeOut, this._yscale, 65, .5, true ); } my_mc._xscale = 65; my_mc._yscale = my_mc._xscale;