flash小游戏及flash片头等等的flash资源源码都是新丁flash资源网为大家提供娱乐和学习以及为相关flash工作者提供方面之门!
  首页 | 片头欣赏 | Banner 欣赏 | Flash 特效 | 网站欣赏 | 技术文档 | 视频教程 | 网页模板 | flash小游戏 | 源码下载 | 相关下载 | 声音下载 | 
  flash Action应用   您当前的位置是:首页 >> 技术文档 >> flash Action应用 >> 详细内容
Flash高级应用技巧一例:测试旋转滤镜
加入时间:2007-10-4  浏览:29   录入:启能Flash资源网   来源:网络

演示效果:

下面是代码:

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();源文件下载:点击这里下载源文件
关于我们 | 联系方式 | 广告赞助 | 免责声明 | 站点留言 | 友情链接 | 推荐站点
Copyright 2007-2008 新丁flash资源网 All Rights Reserved
本站版权所有 新丁flash资源网 保留所有权利 未经许可请勿任意转载或复制使用 
请使用1024*768分辨率浏览本站以达到浏览新丁flash资源网的最佳视觉效果
新丁flash资源网中所有的解压密码均为:www.qnflash.com
粤ICP备08010396号