forked from: RGBCube for AS3

