# Define Document Class with out using Properties Panel

**URL:** <https://forum.kirupa.com/t/define-document-class-with-out-using-properties-panel/322578>\
**Category:** flash\
**Created:** [May 26, 2011, 1:28am UTC](https://forum.kirupa.com/t/define-document-class-with-out-using-properties-panel/322578 "2011-05-26T01:28:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zechdc10](https://avatars.discourse-cdn.com/v4/letter/z/ac91a4/32.png) [@zechdc10](https://forum.kirupa.com/u/zechdc10)\
**Post date:** [May 26, 2011, 1:28am UTC](https://forum.kirupa.com/t/define-document-class-with-out-using-properties-panel/322578/1 "2011-05-26T01:28:06Z")

</div>

Is there some way to not use the properties panel to define the Document class?

**Here is my situation:**

My goal was to create a class that would remove the default ContextMenuItems and add my own. I was having trouble accessing the stage.

I turn this example code into a class and imported it in my fla.  
[http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/flash/ui/ContextMenuBuiltInItems.html#includeExamplesSummary](http://livedocs.adobe.com/livecycle/es/sdkHelp/common/langref/flash/ui/ContextMenuBuiltInItems.html#includeExamplesSummary)

However when I would import the class it would not change the whole stages context menu.

I then defined it as the Document class using the Properties panel and it worked fine. I would really like to know how to define the document class using code and not the interface.
