MovieClip.prototype.ownByteAlpha = function(v) {
trace("## input value = "+v);
if (this.__alpha == undefined) {
mc = this.createEmptyMovieClip("__alpha", 99998);
}
mc.owner = this;
mc.av = 0.390625;
mc.setAlpha = function() {
trace("\tthis._alpha = "+this.owner._alpha);
if (Math.round(this.owner._alpha) != v) {
if (this.owner._alpha>v) {
this.owner._alpha -= this.av;
} else {
this.owner._alpha += this.av;
}
} else {
clearInterval(this._id);
this.removeMovieClip();
}
};
// 1초에서 fps(35)를 계산한 후 그것 보다 2.56배 빠르게 함.
// 100으로 한것과 같은 결과를 얻을 수 있기 때문.
mc._id = setInterval(mc, "setAlpha", 1000/35/2.56);
};
this.onMouseDown = function() {
rnd = random(101);
this.m.ownByteAlpha(rnd);
};
trace("## input value = "+v);
if (this.__alpha == undefined) {
mc = this.createEmptyMovieClip("__alpha", 99998);
}
mc.owner = this;
mc.av = 0.390625;
mc.setAlpha = function() {
trace("\tthis._alpha = "+this.owner._alpha);
if (Math.round(this.owner._alpha) != v) {
if (this.owner._alpha>v) {
this.owner._alpha -= this.av;
} else {
this.owner._alpha += this.av;
}
} else {
clearInterval(this._id);
this.removeMovieClip();
}
};
// 1초에서 fps(35)를 계산한 후 그것 보다 2.56배 빠르게 함.
// 100으로 한것과 같은 결과를 얻을 수 있기 때문.
mc._id = setInterval(mc, "setAlpha", 1000/35/2.56);
};
this.onMouseDown = function() {
rnd = random(101);
this.m.ownByteAlpha(rnd);
};
TAG. alpha


::: 사람과 사람의 교감! 人터넷의 첫 시작! 댓글을 달아주세요! :::