# Document class / singleton question

**URL:** <https://forum.kirupa.com/t/document-class-singleton-question/304312>\
**Category:** flash\
**Created:** [February 5, 2010, 8:41am UTC](https://forum.kirupa.com/t/document-class-singleton-question/304312 "2010-02-05T08:41:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stratboy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/stratboy/32/3054_2.png) [@Stratboy](https://forum.kirupa.com/u/Stratboy)\
**Post date:** [February 5, 2010, 8:41am UTC](https://forum.kirupa.com/t/document-class-singleton-question/304312/1 "2010-02-05T08:41:13Z")

</div>

Hi! Suppose I have a test.fla with a document class associated, say DocTestClass.as.

Normally I load the test.swf and DocTestClass is automatically instantiated.

But I’m curious. What if I make some other instances of DocTestClass, with pure code, without loading the swf? What are the implications or possibilities?

In fact these questions in turn come from another original question: is it meaningful to make a document class a singleton? Or a document class (as I suspect…) cannot be instantiated more than once and so it’s implicitly a singleton?

:stare:
