- 关 键 词:
- flash
代码如下:
var totalPhotoBL:Number = 7;
//图片总张数;
var angleBL:Number = 2*Math.PI/(totalPhotoBL-1);
//角度值,用于平均分配所有图在360度里;
var scaleBL:Number = 30;
//缩放比例值;
var speedBL:Number = Math.PI/180;
// 声明一个速度值;
for (var i = 0; i<totalPhotoBL; i++) {
duplicateMovieClip(photoMC, "newMC"+i, i);
this["newMC"+i].gotoAndStop(i+1);
this["newMC"+i].angleBL = i*angleBL;
this["newMC"+i].onEnterFrame = function() {
this.angleBL -= speedBL;
this.c = 2-Math.abs(Math.cos(this.angleBL/2+90*speedBL))
this._y = 90;
this._alpha=90*this.c*this.c
this._x = Math.sin(this.angleBL)*250+275;
this._xscale = Math.cos(this.angleBL)*20*this.c;
this._yscale = 15*this.c;
this.depth = Math.round(this.c*100);
this.swapDepths(this.depth);
};
}保留:: http://www.qqread.com/flash/2006/11/s265134.html进入讨论组讨论。
//图片总张数;
var angleBL:Number = 2*Math.PI/(totalPhotoBL-1);
//角度值,用于平均分配所有图在360度里;
var scaleBL:Number = 30;
//缩放比例值;
var speedBL:Number = Math.PI/180;
// 声明一个速度值;
for (var i = 0; i<totalPhotoBL; i++) {
duplicateMovieClip(photoMC, "newMC"+i, i);
this["newMC"+i].gotoAndStop(i+1);
this["newMC"+i].angleBL = i*angleBL;
this["newMC"+i].onEnterFrame = function() {
this.angleBL -= speedBL;
this.c = 2-Math.abs(Math.cos(this.angleBL/2+90*speedBL))
this._y = 90;
this._alpha=90*this.c*this.c
this._x = Math.sin(this.angleBL)*250+275;
this._xscale = Math.cos(this.angleBL)*20*this.c;
this._yscale = 15*this.c;
this.depth = Math.round(this.c*100);
this.swapDepths(this.depth);
};
}保留:: http://www.qqread.com/flash/2006/11/s265134.html进入讨论组讨论。
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- AI制作简单的温馨卡片二例 (135次浏览)
- Flash教程:简单光晕效果的制作 (133次浏览)
- Flash教程:教你制作梦幻仙境效果 (98次浏览)
- Flash教程 怎样阅读swf格式的教程 (34次浏览)
- AS3.0的类及绑定 (0次浏览)
- AS3 中的反射 (0次浏览)
- AS3 技巧和提示 (0次浏览)
- 利用引导线制作动态爱心两例 (0次浏览)
- Flash教程:AS下雨动画效果的制作 (0次浏览)
- Flash AS代码常用调试语句trace()的使用 (0次浏览)



