`
wangangie20
  • 浏览: 46054 次
  • 性别: Icon_minigender_2
  • 来自: 厦门
最近访客 更多访客>>
社区版块
存档分类
最新评论

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();附上源文件:

 
旋转滤镜.rar
本文转自:http://www.5uflash.com/flashjiaocheng/Flashaschengxu/484.html
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics