这是一个可以轻松完成alpha透明浅变任务的工具,下面是一个例子演示
下载
演示虽然很一般,但用到图片上就不一般了,不信你试试。来自
RIACN frank推荐。
用法:
#include "alpha.as"
Symbol3.onRollOver = function(){
this.alpha(5,100);
}
Symbol3.onRollOut = function(){
this.alpha(5,10);
}
Symbol6.onRollOver = function(){
this.alpha(5,100);
}
Symbol6.onRollOut = function(){
this.alpha(5,10);
}
Symbol9.onRollOver = function(){
this.alpha(5,100);
}
Symbol9.onRollOut = function(){
this.alpha(5,10);
}
Symbol12.onRollOver = function(){
this.alpha(5,100);
}
Symbol12.onRollOut = function(){
this.alpha(5,10);
}
Symbol2.onRollOver = function(){
this.alpha(5,100);
}
Symbol2.onRollOut = function(){
this.alpha(5,10);
}
Symbol5.onRollOver = function(){
this.alpha(5,100);
}
Symbol5.onRollOut = function(){
this.alpha(5,10);
}
Symbol8.onRollOver = function(){
this.alpha(5,100);
}
Symbol8.onRollOut = function(){
this.alpha(5,10);
}
Symbol11.onRollOver = function(){
this.alpha(5,100);
}
Symbol11.onRollOut = function(){
this.alpha(5,10);
}
Symbol10.onRollOver = function(){
this.alpha(5,100);
}
Symbol10.onRollOut = function(){
this.alpha(5,10);
}
Symbol7.onRollOver = function(){
this.alpha(5,100);
}
Symbol7.onRollOut = function(){
this.alpha(5,10);
}
Symbol4.onRollOver = function(){
this.alpha(5,100);
}
Symbol4.onRollOut = function(){
this.alpha(5,10);
}
Symbol1.onRollOver = function(){
this.alpha(5,100);
}
Symbol1.onRollOut = function(){
this.alpha(5,10);
}
Symbol3._alpha = 10;
Symbol6._alpha = 10;
Symbol9._alpha = 10;
Symbol12._alpha = 10;
Symbol2._alpha = 10;
Symbol5._alpha = 10;
Symbol8._alpha = 10;
Symbol11._alpha = 10;
Symbol10._alpha = 10;
Symbol7._alpha = 10;
Symbol4._alpha = 10;
Symbol1._alpha = 10;