/**
* 把32位整数转换为8为整数。
*
* @param n 32位整数
* @return 8为整数
*/
public function toByte(n:int):int {
if(n > 0) {
return n & 0x8000007F;
} else {
return -(-n & 0x8000007F);
}
}
本文链接:https://assnippets.blogspot.com/2008/02/as3328.html转载请注明出处。
相关文章:
0评论:
发表评论