Integer to Hex

Hey!
I need to convert an integer value to hex to use with the setRGB thingy. (I want a slide bar that controls the colour of a movie clip)
I know that you can use parseInt to get an integer from a hex value but how do you do the opposite?
Cheers
:hangover: (feeling sick as a dog)