原文件下载 |
stop();
//初始化影片
my_mc._xscale=100;
my_mc._yscale=100;
my_mc._alpha=50;
play_bt.onPress=function(){ //显示效果
scale();
}
stop_bt.onPress=function(){ //重置
delete onEnterFrame;
my_mc._xscale=100;
my_mc._yscale=100;
my_mc._alpha=50;
}
function scale(){ //二级缓冲,此写法适合FLASH 8.0版本
onEnterFrame=function(){
xspeed = ((200-my_mc._xscale)*0.6)/0.35;
yspeed = ((200-my_mc._yscale)*0.6)/0.35;
aspeed = ((100-my_mc._alpha)*0.6)/0.35;
my_mc._xscale+=xspeed;
my_mc._yscale+=yspeed;
my_mc._alpha+=aspeed;
}
}
[如需转载请注明出处]
Word教程网 | Excel教程网 | Dreamweaver教程网 | Fireworks教程网 | PPT教程网 | FLASH教程网 | PS教程网 |
HTML教程网 | DIV CSS教程网 | FLASH AS教程网 | ACCESS教程网 | SQL SERVER教程网 | C语言教程网 | JAVASCRIPT教程网 |
ASP教程网 | ASP.NET教程网 | CorelDraw教程网 |