# Call class method within sub movieclip

**URL:** <https://forum.kirupa.com/t/call-class-method-within-sub-movieclip/231382>\
**Category:** flash\
**Created:** [July 4, 2007, 8:27am UTC](https://forum.kirupa.com/t/call-class-method-within-sub-movieclip/231382 "2007-07-04T08:27:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![viske](https://avatars.discourse-cdn.com/v4/letter/v/7ab992/32.png) [@viske](https://forum.kirupa.com/u/viske)\
**Post date:** [July 4, 2007, 8:27am UTC](https://forum.kirupa.com/t/call-class-method-within-sub-movieclip/231382/1 "2007-07-04T08:27:40Z")

</div>

I’m working in Flash CS3. I’ve set my Document class named Main and in the constructor I create my own config class:

```auto
var config:Configuration = new Configuration();

```

and I set a variable named TEST:

```auto
config.TEST = "hello world";

```

When I trace the property on the main Timeline it succeeds, but when I’m doing the trace() from within a MovieClip on the Timeline, it failes with the following error:

```auto
1120: Access of undefined property config.

```

What am I doing wrong, or what is proper way to do this?
