I’m creating a button with increase size , decrease size, the increase size it’s working with on (rollover) but the rollout part doesn’t works, can anyone helpme with this please
this is the code of the button HN
on (rollOver) {
func_agrandar = function () {
if (_root.i_HN < 125) {
HN._yscale=_root.i_HN;
HN._xscale=_root.i_HN;
_root.i_HN++;
Text.text = _root.i_HN;
}
}
fadeInt = setInterval(func_agrandar, 1);
}
on (rollOut) {
func_achiquitar = function () {
if (_root.i_HN > 100) {
HN._yscale=_root.i_HN;
HN._xscale=_root.i_HN;
_root.i_HN–;
Text.text = _root.i_HN;
}
}
fadeOut = setInterval(func_achiquitar, 1);
}