Error when using ...material.a

I have a script which has

function Update() {
aLev = renderer.material.a;
}

in it. But whenever i run the game I get the error…

Assets/NewBehaviourScript.js(9,34): BCE0019: 'a' is not a member of 'UnityEngine.Material'.

Can anyone help?!

Try using renderer.material.color.a

Haha, thankyou very much. What a silly mistake…