# Class exists, but I can't access it's static members?

**URL:** <https://forum.kirupa.com/t/class-exists-but-i-cant-access-its-static-members/259487>\
**Category:** flash\
**Created:** [May 6, 2008, 12:37am UTC](https://forum.kirupa.com/t/class-exists-but-i-cant-access-its-static-members/259487 "2008-05-06T00:37:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibberous](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Post date:** [May 6, 2008, 12:37am UTC](https://forum.kirupa.com/t/class-exists-but-i-cant-access-its-static-members/259487/1 "2008-05-06T00:37:48Z")

</div>

This is weird.

I have a document with a main class. So, I can refer to the main class as ‘ClassName’, and the the class have a static var, xxx.

If I do a trace(ClassName), I get object [ClassName], but if I do trace(ClassName.xxx), I get 1178: Attempted access of inaccessible property categoryMenu through a reference with static type Class.

Is this a bug with Flash? How can it be an instance of the class, but not have the properties of the class?
