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=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();附上源文件:
[img]/Files/BeyondPic/2007-6/17/rar.gif[/img]
 
[url=http://www2.flash8.net/UploadTeach/200706/20070615114055511.rar]旋转滤镜.rar[/url]
本文转自:http://www.5uflash.com/flashjiaocheng/Flashaschengxu/484.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值