# A Definition for the Document Class could not be found

**URL:** <https://forum.kirupa.com/t/a-definition-for-the-document-class-could-not-be-found/282680>\
**Category:** Uncategorized\
**Created:** [February 25, 2009, 5:09am UTC](https://forum.kirupa.com/t/a-definition-for-the-document-class-could-not-be-found/282680 "2009-02-25T05:09:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BeerOclock](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@BeerOclock](https://forum.kirupa.com/u/BeerOclock)\
**Post date:** [February 25, 2009, 5:09am UTC](https://forum.kirupa.com/t/a-definition-for-the-document-class-could-not-be-found/282680/1 "2009-02-25T05:09:06Z")

</div>

I get this confusing message every time I start a new flash project and I dont know why.

I understand what the message means, but its simply not true so that bugs me.

My project so far consists of exactly one AS file so far: CMain.as, which contains exactly one public class: CMain. The file lives here: C:\FlashProj\Game\as\CMain.as.  
In my .FLA, I have set CMain as the Document class.  
In File-\>Publish Settings-\>ActionScript 3.0 ClassPath, I have added “C:\FlashProj\Game\as”.  
When I press “OK” from this screen, I get this message:

“A definition for the document class could not be found in the classpath, so one will be automatically generated in the SWF file upon export.”

On my last projects I think I have just ignored this message and everything worked out ok. But this time I want to know what the hell it means. My CMain class is definetly in the classpath, so what the heck is this message talking about?
