正在加载...

几个基本事件都很清楚了吧?

·如果基本事件不明白去看帮助。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了一点~~呵呵

^_^

textBlog.onRollOver = function() {

  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]

还没找到您要的东西?Google试试看吧,
Google更注重原创、时效性好的文章:


本文相关评论: 才 2 条评论
  1. N神 2005-03-18 11:49:52

    你最近挺卖力啊~~~哈哈[mrgreen]
    顺便我的站恢复了友情链接好象没了

  2. aw 2005-03-18 12:13:36

    恩! 看你的被hack了就没有再放了,现在马上给你恢复:)
    嘿嘿~~下次注意了哦

[支持Ctrl+Enter]为了我们大家和家人的安全,留言请慎重!
声明:
1、本站仅与见过面的个人博客交换链接,见此文
2、留言时的头像是Gravatar提供的服务。如果您有兴趣并且有闲暇时间,可以看看这里的介绍