# What's With The Class Code?

**URL:** https://forum.kirupa.com/t/whats-with-the-class-code/280179
**Category:** flash
**Created:** [January 23, 2009, 7:15pm UTC](https://forum.kirupa.com/t/whats-with-the-class-code/280179 "2009-01-23T19:15:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![DanDaMan](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@DanDaMan](https://forum.kirupa.com/u/DanDaMan)
#### Post date: [January 23, 2009, 7:15pm UTC](https://forum.kirupa.com/t/whats-with-the-class-code/280179/1 "2009-01-23T19:15:05Z")

</div>

I’m using a custom Class and I put it trace(myMC.x);. Sometimes it works just fine, but at other times it says that its a call to a possibly undefined property. Why is this happening and how can I fix it?

Thanks in advance!
