What's With The Class Code?

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!