alphaClip = function (mc, newAlpha) {
var currentAlpha = mc._alpha;
mc.onEnterFrame = function () {
trace("ok " + mc._alpha)
currentAlpha += (newAlpha - currentAlpha) / 2;
mc._alpha = currentAlpha;
}
}
scaleClip = function (mc, newSize) {
var currentSize = mc._xscale;
mc.onEnterFrame = function () {
currentSize += (newSize - currentSize) / 2;
mc._xscale = mc._yscale = currentSize;
}
}
stop();
CALLED BY:
on (rollOver) {
_parent.alphaClip(this, 100);
_parent.scaleClip(this, 175);
}
on (rollOut) {
_parent.alphaClip(this, 40);
_parent.scaleClip(this, 100);
}
2006-11-12
04:15:32
·
3 answers
·
asked by
ted20two
1
in
Computers & Internet
➔ Programming & Design