Today I learned that when scaling decimal numbers to convert them to rgb in flash, it's important to trim your decimals before multiplying them by 256 or 65536.