☆♟(๑• . •๑)♚ 2019-01-06 00:17
浏览 347

旋转播放图片的动画改那个代码才能改变图片的比例、图片的大小和图片的位置

代码如下:
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);
};
}

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog