public static int colorARGB(int color,double alpha){
  int rgb=color & 0x00FFFFFF;
  int a=(int)StrictMath.rint(alpha * 255);
  int argb=rgb | (a << 24);
  return argb;
}

public static int colorARGB ( int color , double alpha ) { int rgb = color & 0x00FFFFFF ; int a = ( int ) StrictMath . rint ( alpha * 255 ) ; int argb = rgb | ( a << 24 ) ; return argb ; }
adds alpha channel information to an rgb integer ( in the highest 8 bits of the 32 bit integer ) to create an argb integer as required by the swf format .
