Actionscript 3.0 1120: Access of undefined property root.?

[h=1][/h] Here’s the function with the line with the error:

public static function getViewX():Number
{
return -MovieClip(root).x;
}

My blog