GetComponent(TextMesh).text crashing on build

hey,

im using the following script to edit the text of a 3d text object

function Update () {

GetComponent(TextMesh).text = ""+Score.score;
}

it works in editor, but crashes on build, debug says following

BCE0019: 'text' is not a member of 'UnityEngine.Component'.

does this not work on android?

fixed, found answer at

http://forum.unity3d.com/threads/37793-3dText?highlight=getcomponent(textmesh).text