首页  |  精品网站  |  原创作品秀   |  艺术设计  |  网络学院  |  信息中心  |  站内搜索  |  求职招聘  |  建站资源  |  服装网站  |  编程开发 |  设计论坛 
  平面设计 画册 VI欣赏 包装 CG-插画   酷站 个人网页 商业网站   Alexa排名 CSS 建站资源 下载专区 JS特效 品牌服装 服装院校   专题欣赏 SEO 图标欣赏
域名注册 虚拟主机 广州网站建设 广州网页设计 IDC赞助 设计资源下载 虚拟主机 域名注册 品牌网站建设 服装品牌网站建设 广告服务 网站推广 娱乐
当前位置:首 页 >> 网络学院 >> Flash ※ FreeHand >> 触鼠感应的loadMoive框框缩放教程

触鼠感应的loadMoive框框缩放教程

来源:国内网页设计秀-中国网页设计师联盟 作者:RAIN7 被读96次

中资源
转载请注明出处-中国设计秀-cnwebshow.com

今天研究了一个做FLASH网站经常会用到的效果,即点击不同的按钮,主场景用来loadMovie的框框的X,Y,H,W值也随着变化.


http://www.flash8.net/bbs/UploadFile/2005-7/200571519313467.swf

主要代码如下:

stageWidth = 800;
stageHeight = 600;
wmodifier = 400;
hmodifier = 150;
bounce = 0.700000;
speed = 9;
expand = function (id){
this.destwidth = wmodifier;
this.poswidth = id._width;
this.velwidth = this.velwidth * bounce + (this.destwidth - this.poswidth) / speed;
id._width = id._width + Math.round(this.velwidth);
this.destheight = hmodifier;
this.posheight = id._height;
this.velheight = this.velheight * bounce + (this.destheight - this.posheight) / speed;
id._height = id._height + Math.round(this.velheight);
this.destx = (stageWidth - wmodifier) / 2;
this.posx = id._x;
this.velx = this.velx * bounce + (this.destx - this.posx) / speed;
id._x = id._x + Math.round(this.velx);
this.desty = (stageHeight - hmodifier) / 2;
this.posy = id._y;
this.vely = this.vely * bounce + (this.desty - this.posy) / speed;
id._y = id._y + Math.round(this.vely);
shadow._width = color_kuai._width + 20;
shadow._x = color_kuai._x - 10;
shadow._height = color_kuai._height + 20;
shadow._y = color_kuai._y - 10;
};
color_kuai.onEnterFrame = function (){
expand(this);
};
stop();


源文件里面有详细的说明.
源文件下载:

转载请注明出处-中国设计秀-cnwebshow.com


附件下载:1. 2005715193152394.rar  
 


投稿 】【对本文进行评论】 【字体: 】【发布于2005-08-29 12:26】

相关专题:暂无相关专题

上一篇:this的使用   下一篇:神奇克隆----Flash 残影效果
 认证LOGO下载
     
Copyright © 2005-2007 中国设计秀_网页设计教程_优秀网页设计欣赏_平面设计欣赏 All Right Reserved.
做最专业的设计服务网站,秀出自我,秀出精彩!中国设计秀,秀---无处不在!!
QQ:54292427  8208442 MSN:kingvisual#hotmail.com 交流群:9107036 3848215 8850631
粤ICP备05067046号 RSS