Access document class var from movieclip

trace(MovieClip(root).TRACE);

so at pesent I am using this to try and access

public var TRACE:String

in the the document class.

however I am getting this

“1180: Call to a possibly undefined method addFrameScript.�”

my document class extends to Sprite as I have some stage resizing that occurs on Initialise

StaticInheritance extends Sprite

Im sure it has something to do with the way the document class extends.