首页 | 互联网 | IT动态 | 网络设备 | 服务器 | IDC | 安全 | Cisco | Windows | Linux | Java | .Net | Oracle | CIW | 华为 | 专题
IT技术 | 网页设计 | 平面设计 | 电子书下载 | 教学视频 | 方案 | 数字网校 | 直播室 | 虚拟考场 | 面授培训 | 搜索 | 博客 | 沙龙 | 论坛
 Dreamweaver | Flash
 Fireworks  | Frontpage
 HTML/CSS  | Javascript
 Photoshop  | CorelDraw
 AuotoCAD   | Illustrator
 Freehand
 3DMax    | Authorware
 Director   | Maya
 PP点点通 | 迅雷 | BT
 eMule | FlashGet | Nero
 Ghost | Outlook | IE
 Maxthon | Office
 QQ | MSN | 网易泡泡
 Skype | 雅虎通 | 新浪UC

最新文章

您现在的位置: 中国IT实验室 >> 网页设计 >> Flash >> Flash制作实例 >> 文章正文


Flash高级应用:测试旋转滤镜


中国IT实验室收集整理  2007-6-18  佚名  保存本文  推荐给好友  收藏本站


◆ 网页平面多媒体培训、认证考试免费咨询热线:400-700-5807   进入网络咨询平台

演示效果:

FlashVars" VALUE="">

下面是代码:

var r:Number = 30;
var m:Number = 36;
var red:Number = Math.PI*2;
onEnterFrame = function () {
pic_mc._x -= (pic_mc._x-pic_mc._x+r*Math.cos(red))/25;
pic_mc._y -= (pic_mc._y-pic_mc._y+r*Math.sin(red))/25;
red = red<=0 ? Math.PI*2 : red-Math.PI/m;
duplicateMovieClip("pic_mc", "pic_mc"+d, d++);
d>=8888 ? d=0 : this["pic_mc"+(d-60)].removeMovieClip();
};
this.l_mc.kuai_mc.onPress = function() {
this.startDrag(false, 0, 0, 100, 0);
this.onEnterFrame = function() {
  r = this._x/2;
  this._txt.text = "扭曲半径:"+this._x;
};
};
this.l2_mc.kuai_mc.onPress = function() {
this.startDrag(false, 0, 0, 100, 0);
this.onEnterFrame = function() {
  m = 6+this._x/100*36;
  this._txt.text = "扭曲度:"+this._x;
};
};
onMouseUp = function () {
stopDrag();
delete this.l_mc.kuai_mc.onEnterFrame;
};
stop();
【责编:runlz】


 相关文章  推荐文章
教你用Frontpage制作网上电影的发布
设计精彩网页九“慎”
在Frontpage 中定义网页CSS样式
如何在Frontpage中定义CSS样式
FrontPage设计网页禁用JavaScript
告别:Office悍将FrontPage即将退休
FrontPage制作站内信息搜索平台
Frontpage中网页字体的美化研究
超级实用的几种表单校验效果
FrontPage特效按钮的制作
  文章评论