# Access document class var from movieclip

**URL:** <https://forum.kirupa.com/t/access-document-class-var-from-movieclip/296691>\
**Category:** flash\
**Created:** [September 18, 2009, 10:58am UTC](https://forum.kirupa.com/t/access-document-class-var-from-movieclip/296691 "2009-09-18T10:58:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brndn](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@brndn](https://forum.kirupa.com/u/brndn)\
**Post date:** [September 18, 2009, 10:58am UTC](https://forum.kirupa.com/t/access-document-class-var-from-movieclip/296691/1 "2009-09-18T10:58:53Z")

</div>

trace(MovieClip(root).TRACE);

so at pesent I am using this to try and access

```auto
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

```auto
StaticInheritance extends Sprite

```

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