[此文来源于互联网,牛C网只负责收集整理]

演示效果:

下面是代码:

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();
源文件下载:点击这里下载源文件
    

            


作者:gdgzboy@牛C网
地址:http://www.niuc.net/post/1975/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!



评论(0) | 引用(0) | 阅读(203)
发表评论
昵称 [注册]
密码 游客无需密码
网址
电邮
打开HTML 打开UBB 打开表情 隐藏 记住我