发新话题
打印

[讨论] 一个旋转特效

一个旋转特效

昨天一个朋友制作的 自己下载了 修改了下
现在有个问题 就是   旋转的影片前后位置在不断发生变化  怎么 根据这个变化 来自动 修改 它们的 深度
效果会更逼真

附件

一个旋转特效.fla (33.5 KB)

2008-6-20 14:10, 下载次数: 75

旋转.swf (9.46 KB)

2008-6-20 14:10, 下载次数: 102

TOP

以下方法可以实现,但不推荐。
function gttEnterFrame() {
        this.xx += xspeed;
        this._x = a*Math.sin(this.xx)+250;
        this._xscale = a*Math.cos(this.xx);
        this._yscale = 100+10*Math.cos(this.xx);
        if (this._xscale>0) {
                this._alpha = 100;
                this.swapDepths(this._parent.getNextHighestDepth ())
        }
        if (this._xscale<=0) {
                this._alpha = 40;
        }
}

TOP

很期待,为什么下载不了呢

TOP

谢谢版主  我自己 找到了解决的方法

if (this._xscale>0) {
  this._alpha = 100;
  this.swapDepths(100+sh);
}
if (this._xscale<=0) {
  this._alpha = 40;
  this.swapDepths(10+sh);
}

附件

旋转图片.swf (9.43 KB)

2008-6-20 17:56, 下载次数: 51

一个旋转特效.fla (34 KB)

2008-6-20 17:56, 下载次数: 39

TOP

下载勒,楼主啊,你这个是用代码做的,我对代码一窍不通啊.

TOP

这个例子很好啊 以后做图片展示很酷的

TOP

发新话题