TIP - Converting a textual HEX color value to int

Hi Everyone,
just a short tip today on how to convert values like this : #00FF00 from a config file, letsay, to something you can use inside of your AS3 code.
Here it is
PLAIN TEXT
Actionscript:

function digestHexColor(color:String):Number

{

    var col:Number = parseInt(color.substr(1), 16);

    if (isNaN(col))

        col = 0xffffff;

            [...]