# Undefined Public Static Constant

**URL:** <https://forum.kirupa.com/t/undefined-public-static-constant/306712>\
**Category:** flash\
**Created:** [March 20, 2010, 7:02pm UTC](https://forum.kirupa.com/t/undefined-public-static-constant/306712 "2010-03-20T19:02:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Obi\_Wan](https://avatars.discourse-cdn.com/v4/letter/o/e99b99/32.png) [@Obi\_Wan](https://forum.kirupa.com/u/Obi_Wan)\
**Post date:** [March 20, 2010, 7:02pm UTC](https://forum.kirupa.com/t/undefined-public-static-constant/306712/1 "2010-03-20T19:02:29Z")

</div>

Hey everyone I have a class called (DropDown.as)

In that class I have:

```auto

public static const DROPDOWN_CHANGE:String = "Drop Down Changed";

```

In my document class (Main.as) I instantiate my class and try and trace my public static constant but it outputs undefined:

```auto

var dropDown_mc:DropDown = new DropDown();
trace("Public Static Constant" + " " + dropDown_mc.DROPDOWN_CHANGE);

```

Any help is great. Thanks for your time.
