• 【设为首页】
  • 【收藏闪客居】
当前位置:主页>FLASH AS 编程>AS基础篇>滤镜>文章内容
  • 旋转滤镜
  • 来源:网络 作者:终极讨厌 2007-06-16 【
发个练习!!看看效果先:

 

下面是代码:

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();

附上源文件: 旋转滤镜.rar




上一篇:没有了   下一篇:用Flash 8滤镜打造视觉冲击特效
您的评论
  • 用户名:新注册) 密码: 匿名评论
  • 评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规)
推荐内容
相关内容

Copyright © 2006-2008 flashas.net All Rights Reserved.
网站内容咨询: admin#flashas.net (#为@) 联系QQ:40777822 浙ICP备06033001号
(本网站最佳浏览解析度为1024*768, 建议使用IE 6.0或以上版本浏览器。)