首页--> 计算机--> FLASH教程
 
Flash特效制作常用的源代码大放送
http://www.xxqqss.com 学习轻松网 发布日期:2006/9/23 点击量:2914
 

b=md5("xx");

//xx可设为任意字符

s=b.toUpperCase();

//转换成大写

trace(b);

trace(s);

发点缓动函数 以下是引用片段:

Math.linearTween=function(t,b,c,d){

returnc*t/d+b;

};

//线性运动函数

Math.easeInQuad=function(t,b,c,d){

returnc*(t/=d)*t+b;

};

//二次缓入函数

Math.easeOutQuad=function(t,b,c,d){

return-c*(t/=d)*(t-2)+b;

};

//二次缓出函数

Math.easeINOutQuad=function(t,b,c,d){

if((t/=d/2)<1){

returnc/2*t*t+b;

}

return-c/2*((--t)*(t-2)-1)+b;

};

//二次缓入缓出函数

Math.easeInCubic=function(t,b,c,d){

returnc*Math.pow(t/d,3)+b;

};

//三次缓入函数

Math.easeOutCubic=function(t,b,c,d){

returnc*(Math.pow(t/d-1,3)+1)+b;

};

//三次缓出函数

Math.easeINOutCubic=function(t,b,c,d){

if((t/=d/2)<1){

returnc/2*Math.pow(t,3)+b;

}

returnc/2*(Math.pow(t-2,3)+2)+b;

};

//三次缓入缓出函数

Math.easeInQuart=function(t,b,c,d){

returnc*Math.pow(t/d,4)+b;

};

//四次缓入函数

Math.easeOutQuart=function(t,b,c,d){

return-c*(Math.pow(t/d-1,4)-1)+b;

};

//四次缓出函数

Math.easeINOutQuart=function(t,b,c,d){

if((t/=d/2)<1){

returnc/2*Math.pow(t,4)+b;

}

return-c/2*(Math.pow(t-2,4)-2)+b;

};

//四次缓入缓出函数

Math.easeInQuint=function(t,b,c,d){

returnc*Math.pow(t/d,5)+b;

};

//五次缓入函数

Math.easeOutQuint=function(t,b,c,d){

returnc*(Math.pow(t/d-1,5)+1)+b;

};

//五次缓出函数

Math.easeINOutQuint=function(t,b,c,d){

if((t/=d/2)<1){

returnc/2*Math.pow(t,5)+b;

}

returnc/2*(Math.pow(t-2,5)+2)+b;

};

//五次缓入缓出函数

Math.easeInSine=function(t,b,c,d){

returnc*(1-Math.cos(t/d*(Math.PI/2)))+b;

};

//正弦缓出函数

Math.easeOutSine=function(t,b,c,d){

returnc*Math.sin(t/d*(Math.PI/2))+b;

};

//正弦缓出函数

Math.easeINOutSine=function(t,b,c,d){

returnc/2*(1-Math.cos(Math.PI*t/d))+b;

};

//正弦缓入缓出函数

Math.easeInExpo=function(t,b,c,d){

returnc*Math.pow(2,10*(t/d-1))+b;

};

//指数缓入函数

Math.easeOutExpo=function(t,b,c,d){

returnc*(-Math.pow(2,-10*t/d)+1)+b;

};

//指数缓出函数

Math.easeINOutExpo=function(t,b,c,d){

if((t/=d/2)<1){

returnc/2*Math.pow(2,10*(t-1))+b;

}

returnc/2*(-Math.pow(2,-10*--t)+2)+b;

};

//指数缓入缓出函数

Math.easeInCirc=function(t,b,c,d){

returnc*(1-Math.sqrt(1-(t/=d)*t))+b;

};

//圆形缓入函数

Math.easeOutCirc=function(t,b,c,d){

returnc*Math.sqrt(1-(t=t/d-1)*t)+b;

};

//圆形缓出函数

Math.easeINOutCirc=function(t,b,c,d){

if((t/=d/2)<1){

returnc/2*(1-Math.sqrt(1-t*t))+b;

}

returnc/2*(Math.sqrt(1-(t-=2)*t)+1)+b;

};

//圆形缓入缓出函数


上一页     下一页
打印】 【关闭
免责声明 :本站刊载此文不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。对本文有任何异议,请发送fiyeadwyv@163.com
【免费游戏赚钱网址导航】(站长QQ:9792414)多站号请误用相同密码 【站长信箱】幸运28交流群号:122287647
游戏赚钱平台
注册地址
企业/个人
企业
 有赚网与蹦蹦网是深度合作关系
企业
手机app端赚钱名称
下载安装后输入邀请码领额外红包
估计日赚收入(亲体验)
下载方式
闪电盒子
邀请码:413270540831
3元
 安卓手机各应用市场(推荐应用宝),苹果手机输入名称查找。
中青看点
邀请码:25741975
2元
趣头条
邀请码:A443657406
1元
 
健康游戏忠告:抵制不良游戏,拒绝盗版游戏;注意自我保护,谨防受骗上当;适度游戏益脑,沉迷游戏伤身;合理安排时间,享受健康生活。
本站声明不参与任何游戏网站经营事宜,如果你和第三方游戏网站产生纠纷事宜请自行协商解决,本站感谢你的支持和理解。
站长QQ:9792414