2004/12/17 | 暴光效果——抄来的
类别(Flash进修) | 评论(2) | 阅读(557) | 发表于 15:58
//-------------- 给MovieClip添加 _brightOffset 属性 ---------------
MovieClip.prototype.setBrightOffset = function(offset) {
    (new Color(this)).setTransform({rb:offset, gb:offset, bb:offset});
};
MovieClip.prototype.getBrightOffset = function() {
    return (new Color(this)).getTransform().rb;
};
with (MovieClip.prototype) {
    addProperty("_brightOffset", getBrightOffset, setBrightOffset);
}
//----------------------------------------------------------------
var tween = new mx.transitions.Tween(mc, "_brightOffset", mx.transitions.easing.Regular.easeOut, 0, 255, 1, true);
this.onMouseDown = function() {
    tween.yoyo();
};
0

评论Comments(2条)

[丹若]
[丹若]
2005/7/19 11:30:57
板凳
我也来试试看
[Cool~]
[Cool~]
2004/12/26 23:58:36
沙发
这个效果好过瘾哦
<< 1

发表留言post

用 户Name:
密 码Password:
内 容Comment:
http://www.5d.cn/images/size_down.gif http://www.5d.cn/images/size_up.gif
验 证Verify: