几个基本事件都很清楚了吧?
·如果基本事件不明白去看帮助。Button类
·如果不知道什么是tween类,还是去google一下:)
本人也考虑放出一个关于tween类的说明,但是实在精力有限,过一段时间肯定会整理出来同大家分享!
代码见后:都是基本功能就不写注视了,最重要的地方在这一段
textBlog.onRelease = function() {
this.onRollOut = this.onReleaseOutside=function () {
this.tagb.tag.colorTo(0xffffff, 0.5, "linear");
};
this._parent.flashBlog.onRollOut = this._parent.flashBlog.onReleaseOutside=function () {
this.tagb.tag.colorTo(null, 0.5);
};
this.tween(["_x", "_y", "_xscale", "_yscale"], [100, 300, 60, 60], 1);
this._parent.flashBlog.tween(["_x", "_y", "_xscale", "_yscale"], [100, 440, 50, 50], 1);
};
我个人愿意把它称为“按钮事件的重载”虽然这么叫yy了一点~~呵呵
^_^
this.tagb.tag.colorTo(0xffffff, 0.5, "linear");
};
textBlog.onRollOut = flashBlog.onRollOut=function () {
this.tagb.tag.colorTo(null, 0.5);
};
textBlog.onRelease = function() {
this.onRollOut = this.onReleaseOutside=function () {
this.tagb.tag.colorTo(0xffffff, 0.5, "linear");
};
this._parent.flashBlog.onRollOut = this._parent.flashBlog.onReleaseOutside=function () {
this.tagb.tag.colorTo(null, 0.5);
};
this.tween(["_x", "_y", "_xscale", "_yscale"], [100, 300, 60, 60], 1);
this._parent.flashBlog.tween(["_x", "_y", "_xscale", "_yscale"], [100, 440, 50, 50], 1);
};
flashBlog.onRollOver = function() {
this.tagb.tag.colorTo(0xffffff, 0.5, "linear");
};
flashBlog.onRollOut = flashBlog.onReleaseOutside=function () {
this.tagb.tag.colorTo(null, 0.5);
};
flashBlog.onRelease = function() {
this.onRollOut = this.onReleaseOutside=function () {
this.tagb.tag.colorTo(0xffffff, 0.5, "linear");
};
this._parent.textBlog.onRollOut = this._parent.textBlog.onReleaseOutside=function () {
this.tagb.tag.colorTo(null, 0.5);
};
this.tween(["_x", "_y", "_xscale", "_yscale"], [100, 300, 60, 60], 1);
this._parent.textBlog.tween(["_x", "_y", "_xscale", "_yscale"], [100, 440, 50, 50], 1);
};[/code]
本文来自:http://www.awflasher.com/blog/archives/90
Google更注重原创、时效性好的文章:
| 相关阅读 | 本月十大 |




你最近挺卖力啊~~~哈哈[mrgreen]
顺便我的站恢复了友情链接好象没了
恩! 看你的被hack了就没有再放了,现在马上给你恢复:)
嘿嘿~~下次注意了哦