AS3位图过渡效果简单实用
转自:http://www.5ga.cn/blog/archives/2009/11/1813/ (含效果)
private function bitmaptest():void {
bitmapDataTemp.lock();bitmapDataTemp.threshold(bitmapData2,bitmapData2.rect,new Point(),">", getI(), 0,0x000000FF,true);
bitmapDataTemp.unlock();
i++;
}
private function getI():uint {
if(Math.floor(i/0xff)%2) {//1,递减
return 0xff-i%0xff;
}else {//0 返回值递增
return i%0xff;
}
}