setRGB (RGB);
}
}
/**
*=============================================
* 函数:setChangeRGB (RGB : Number, step_int : Number, Nom : Number)
* 参数:1.RGB :新的颜色值;
* 2.step_int :操作步骤;
* 3.Nom :可选,触发监听的一个值;
* 说明:将MC的颜色渐变到另一个颜色。
* =============================================
* */
public function setChangeRGB (RGB : Number, step_int : Number, Nom : Number)
{
if (_currentStep_int)
{
clearInterval (_intervalID);
}
delete nowCol;
_currentStep_int = true;
if ( ! isNaN (Nom))
{
_Nom = Nom;
}
if ( ! isNaN (RGB) || RGB < 0xFFFFFF || RGB > 0)
{
if (step_int == undefined || step_int <= 0)
{
var step_int = 10;
}
var newCol = new Array;
newCol = getColArray (RGB);
//
nowCol = new Array;
var _l = _col.getRGB ().toString (16);
_l =
nowCol = getColArray (parseInt ("0x" + _l, 16));
//
var delCol = new Array;
delCol
admin#flashas.net (#为@) 联系QQ:
:40777822
浙ICP备06033001号