Blending from one color to another

Hello,
i was wondering how to make it so if a user gives me two hexadecimal RGB colors so that i could blend from one color to the other using actionscript. Any help would be appreciated.