Problem with Variables and Hex colors

Hello,

I’m loading a color from a XML file. eg **0x0AAFD
**and storing it on a variable. eg **var storecolor = myxml.childNodes[0].attributes.color;

**storecolor returns the value 0x0AAFD.

If I do,
box.colorTo(0x0AAFD, 0.3);
it will work.

Where I am having trouble is when I try to use the var in a MCTWEEN function. eg. box.colorTo(storecolor, 0.3);

I’ve tried making a the variable a string and a number but still doesnt work.
Please not that the the variable is a global var.

Any help is appreciated. Thank You
irok