Change button opacity using C# script?

Hi, I am using the Unity 4.6 beta and was wondering what is the easiest way to fade the opacity in or out on a button object? I tried changing the image.color.a of the object but it didn’t work. Thanks!

Button opacity is determined by the alpha channel of the texture on the image component.

This may help